L137从usb设备启动
2009-08-21 13:28
225 查看
USB pendrive procedure
For the USB pendrive you should create two partitions:a FAT16 that contains the Linux kernel file uImage
a ext2 that contains the entire Linux filesystem
sudo /sbin/parted /dev/sda mkpartfs primary fat16 0 30M mkpartfs primary ext2 31M 2048M
If the Linux distribution has an automount feature, after running this command additional icons in your desktop and (maybe) file browser screens should appear in the screen. If it does not have the automount feature, the partition(s) must be mounted manually in a previously created directory (the example below assumes disk and disk-1).
mount -t vfat /dev/sda1 /media/disk mount -t ext2 /dev/sda2 /media/disk-1
Copy the target filesystem to the ext2 partition.
sudo cp -Rf /home/<useracct>/workdir/filesys /media/disk-1
The <useracct> is your login.
Copy the Linux kernel file uImage to the first partition
If using the default Linux kernel provided with the installation:
sudo cp /opt/OMAPL137_arm_1_00_00_07/REL_LSP_02_20_00_05/PSP_02_20_00_05/bin/uImage /media/disk
If using a compiled Linux kernel: (sections 4.2 and 5.3 of <LSP_02.20_OMAP-L137_User_Guide.pdf> and the errata at this page)
sudo cp <lsp_install_dir>/montavista/pro/devkit/lsp/ti-davinci/linux-2.6.18_pro500/arch/arm/boot/uImage /media/disk
Similarly to the MMC/SD case, all modules should be properly copied onto the target filesystem.
If using the default Linux kernel provided with the installation:
sudo cp -Rf /opt/OMAPL137_arm_1_00_00_07/REL_LSP_02_20_00_05/PSP_02_20_00_05/bin/kernel_modules/* /media/disk-1
Or if using a compiled Linux kernel the modules can be installed directly to the target filesystem (section 5.3 of <LSP_02.20_OMAP-L137_User_Guide.pdf>):
make modules modules_install INSTALL_MOD_PATH=/media/disk-1 ARCH=arm CROSS_COMPILE=arm_v5t_le-
-----------------------------------------------------------------------------------------
The script below works with an USB pendrive that should meet the requirements below. Check the <LSP_02.20_OMAP-L137_User_Guide.pdf> and this topic for additional details.
U-boot must be rebuilt with USB support enabled.
The 2GB USB pendrive must be connected to USB0 only and contain two partitions: the first partition must be of type FAT16 or FAT32 and contains the uImage (Linux Kernel) file in the root directory
the second partition must be of type ext2 or ext3 and contains the target filesystem (the same contents of /home/<useracct>/workdir/filesys)
; Keep the VT window open while executing macro showtt 1 ; Set the synchronous mode setsync 1 ; needed because of the slower operations usb start and fatload PromptUboot = 'U-Boot > ' ; Set the title to make easier identification between boards settitle 'OMAPL137' ; check if USB is alive and which devices are on sendln 'usb start' wait PromptUboot ; load the kernel image to memory sendln 'fatload usb 0:1 0xC0700000 uimage' wait PromptUboot ; set kernel command line argument sendln 'setenv bootargs console=ttyS2,115200n8 noinitrd rw ip=dhcp root=/dev/sda2 rootfstype=ext2 mem=32M' ;USB BOOT ; choose kernel image file name sendln 'setenv bootfile uImage' ; boot the board! sendln 'bootm' ; end of macro file
Note: The command usb start sometimes hangs on the message scanning bus for storage devices.... If this happens to you, stop the macro from executing, reset the board and reload the script file.
相关文章推荐
- 解决win7 Windows USB无法驱动/驱动错误/该设备无法启动。(代码10)
- VirtualBox从USB设备(PE)启动图文教程
- VMWARE 7 USB设备的服务VMware USB Arbitration 无法启动,解决
- VirtualBox从USB设备启动
- VMware USB Arbitration Service无法启动,出现错误31:连接到系统上的设备没有发挥作用”
- VirtualBox从USB设备(PE)启动图文教程
- Android车机启动后判断是否存在USB存储设备
- Ubuntu 15.04启动Virtualbox USB 设备支持
- 10012.在USB存储设备上:建立Linux启动系统
- usb由于其配置信息(注册表中的)不完整或已损坏,Windows 无法启动这个硬件设备(代码 19
- usb设备无法启动,Windows 没有启动相关的设备驱动程序
- win7 usb u盘打不开,设备管理器提示:该设备无法启动。 (代码 10)
- VMware Fusion,VirtualBox等虚拟机从USB设备启动 的方法
- VirtualBox从USB设备启动方法
- 启动VMware USB Arbitration Service服务时提示:错误31:连接到系统上的设备没有发挥作用
- Raspberry Pi-2 启动自动挂载USB设备
- 使用VBS禁用、启动USB存储设备
- Win版VirtualBox从USB设备启动方法
- USB设备不能用。提示Windows 无法启动这个硬件设备。 (代码 19)
- 安装USB--RS232驱动,提示设备无法启动,解决方法