Difference between revisions of "Boot from USB using u-boot"
Line 1: | Line 1: | ||
'''Note: This instruction apply only to LExxB65x, LExxB75x, PSxxB65x TV series with CI only supported devices''' | '''Note: This instruction apply only to LExxB65x, LExxB75x, PSxxB65x TV series with CI only supported devices''' | ||
'''This is for advanced users and developers''' | '''This is for advanced users and developers''' | ||
+ | '''Instruction is in progress!''' | ||
Requirements: | Requirements: | ||
Line 12: | Line 13: | ||
Follow steps: | Follow steps: | ||
− | + | * Build rootfs image using [http://wiki.samygo.tv/index.php?title=SamyGO_OpenEmbedded SamyGO OE Framework]. | |
Builded rootfs image is located in '''build/tmp/deploy/images''' directory. Filename looks like '''rootfs-sdp83-xxxxxxx.tar.gz'''. | Builded rootfs image is located in '''build/tmp/deploy/images''' directory. Filename looks like '''rootfs-sdp83-xxxxxxx.tar.gz'''. | ||
− | + | * Partition usb disk/pen drive. | |
Partition drive using '''fdisk''' or other tool. | Partition drive using '''fdisk''' or other tool. | ||
Line 26: | Line 27: | ||
Format second partition with '''ext2fsprogs''' as ext2/ext3. | Format second partition with '''ext2fsprogs''' as ext2/ext3. | ||
− | + | * Unpack rootfs image to linux partition on usb disk/pen drive. | |
Unpack image to second partition with '''root''' rights. | Unpack image to second partition with '''root''' rights. | ||
− | + | * Put kernel image to TFTP service directory. | |
Note: Do this only if you are using pen drive or if you want faster kernel load image in case use disk drive. | Note: Do this only if you are using pen drive or if you want faster kernel load image in case use disk drive. | ||
− | Unpack '''uImage-2.6.18_SELP-ARM''' from /boot in image rootfs, raname it to '''uImage''' and copy to root directory of | + | Unpack '''uImage-2.6.18_SELP-ARM''' from /boot in image rootfs, raname it to '''uImage''' and copy to root directory of TFTP service. |
− | + | * Enable [http://wiki.samygo.tv/index.php?title=Enable_Serial_Console_on_non_CI%2B_Devices serial debug console]. | |
− | + | * Enter u-boot [http://wiki.samygo.tv/index.php?title=Getting_access_to_uBoot_/_bootloader bootloader] prompt shell. | |
− | + | * Set variables and execute commands in u-boot shell to boot linux kernel. | |
In case use tftp set first: | In case use tftp set first: | ||
Line 46: | Line 47: | ||
setenv ipaddr 192.168.1.100;setenv gatewayip 192.168.1.1;setenv serverip 192.168.1.2 | setenv ipaddr 192.168.1.100;setenv gatewayip 192.168.1.1;setenv serverip 192.168.1.2 | ||
− | where first IP is TV, second gateway is not important in this case, third is address of | + | where first IP is TV, second gateway is not important in this case, third is address of TFTP server. |
− | Boot linux kernel (case | + | Boot linux kernel (case TFTP): |
setenv bootargs root=/dev/sda2 console=ttyS1;tftp;bootm | setenv bootargs root=/dev/sda2 console=ttyS1;tftp;bootm | ||
− | Boot linux kernel (case | + | Boot linux kernel (case FAT partition): |
setenv bootargs root=/dev/sda2 console=ttyS1;usb start;fatload usb 0 61000000 uImage;bootm | setenv bootargs root=/dev/sda2 console=ttyS1;usb start;fatload usb 0 61000000 uImage;bootm | ||
Line 58: | Line 59: | ||
where /dev/sda2 is linux rootfs. | where /dev/sda2 is linux rootfs. | ||
− | + | * Start Samsung original software: | |
samsung-start.sh | samsung-start.sh | ||
− | |||
− |
Revision as of 10:57, 17 March 2010
Note: This instruction apply only to LExxB65x, LExxB75x, PSxxB65x TV series with CI only supported devices This is for advanced users and developers Instruction is in progress!
Requirements:
- Serial connection
- Usb disk drive or pen drive (at least 256MB)
- TFTP daemon outside TV on some host in case using pen drive or optionaly in case disk drive
- Regular Linux based system to prepare usb disk/pen drive
- Builded rootfs image
Follow steps:
- Build rootfs image using SamyGO OE Framework.
Builded rootfs image is located in build/tmp/deploy/images directory. Filename looks like rootfs-sdp83-xxxxxxx.tar.gz.
- Partition usb disk/pen drive.
Partition drive using fdisk or other tool.
First parittion FAT type. It will be usefull or needed if loading kernel image from it. Second partition as Linux type.
Format first partition with mtools or other tool as VFAT type filesystem. Format second partition with ext2fsprogs as ext2/ext3.
- Unpack rootfs image to linux partition on usb disk/pen drive.
Unpack image to second partition with root rights.
- Put kernel image to TFTP service directory.
Note: Do this only if you are using pen drive or if you want faster kernel load image in case use disk drive.
Unpack uImage-2.6.18_SELP-ARM from /boot in image rootfs, raname it to uImage and copy to root directory of TFTP service.
- Enable serial debug console.
- Enter u-boot bootloader prompt shell.
- Set variables and execute commands in u-boot shell to boot linux kernel.
In case use tftp set first:
setenv ipaddr 192.168.1.100;setenv gatewayip 192.168.1.1;setenv serverip 192.168.1.2
where first IP is TV, second gateway is not important in this case, third is address of TFTP server.
Boot linux kernel (case TFTP):
setenv bootargs root=/dev/sda2 console=ttyS1;tftp;bootm
Boot linux kernel (case FAT partition):
setenv bootargs root=/dev/sda2 console=ttyS1;usb start;fatload usb 0 61000000 uImage;bootm
where /dev/sda2 is linux rootfs.
- Start Samsung original software:
samsung-start.sh