bc10/booting
[
Front page
] [
New
|
List of pages
|
Search
|
Recent changes
]
Start:
[[bc10/Software]]
- Contents
#contents
* Summary [#x7a308ba]
>~
This section explains the boot process of bc10. It covers...
turning on the power to starting up the OS. It takes thre...
X-Loader, and U-Boot. bootROM is factory preconfigured, a...
of it. The The detail information of X-Loader and U-Boot ...
[[bc10/u-boot]], respectively.~
* Boot Sequence [#se04ae6f]
>~
As bc10 ([[OMAP3530:http://focus.ti.com/docs/prod/folders...
order of the boot sequence in bc10 is described as below....
boot process starts right after power is turned on.~
+ BootROM
+ X-Loader
+ U-Boot
+ uImage (Linux kernel)
* BootROM [#oab27cef]
>~
OMAP3530 contains BootROM, which includes the code that h...
of the code, BootROM start scanning the devices for the b...
directly accesses the devices. The devices that BootROM c...
- NAND Flash
- MMC/SD card
- USB
- Serial~
>BootROM looks at the '''sys_boot''' pins to determine th...
setting of the '''sys_boot''' pins is rearranged, the ord...
** Scanning Order [#e32e3d00]
>~
bc10 and BeagleBoard have the same configuration for the ...
order. While power is turned on (pressing RESET button), ...
USER button is pressed or not.~
- USER button is NOT pressed as RESET button is pressed~
-- ''NAND -> USB -> UART -> MMC/SD''~
- USER button is pressed as RESET button is pressed~
-- ''USB -> UART -> MMC/SD -> NAND''~
>(Pressing RESET button means that power is turned on.)
>~
If BootROM cannot find the bootloader in one device, then...
scanning it.~
>
The two sets of the scanning order are very useful and pr...
do not be necessary to press USER button. However, in som...
NAND does not work appropriately, or NAND is blank since ...
button, and access bootloaders in the SD card.~
* X-Loader [#rb30f24e]
>~
X-Loader is the first bootloader whose objective is to se...
X-Loader access the devices in such order.~
+ MMC/SD card
+ NAND Flash
>For the information of how to build X-Loader from the so...
* U-Boot [#z6e34fcb]
>~
U-Boot is the second bootloader. This is a multifunctiona...
hardware. U-Boot is equipped with the command line interf...
and write in NAND. Since U-Boot is highly functional, any...
please look at [[bc10/u-boot]].~
* Linux Kernel [#qb5bb6c4]
>
Linux kernel image file is named '''uImage''', and '''uIm...
Android environment. To build Linux kernel ('''uImage''')...
* Create bootable SD card [#mef5758b]
** Outline [#e00adbcd]
>
This section explains how to create a bootable SD card, w...
is the easiest way to boot bc10 since NAND Flash of bc10 ...
of bc10, it cannot be booted from the microSD card slot. ...
assumes that the OS which U-Boot boot up is Linux and tha...
contains the tools for booting, and the second partition ...
contents of each partition are described as below.~
- FAT32 partition
-- X-Loader
-- U-Boot
-- Linux kernel
- Linux partition
-- Linux toot file system
>It is assumed that working environment is Linux. ~
The order of the instructions is shown below.~
+ Initialization and setting of partitions
+ Format the bootlorder file system
+ Placing the bootlorder files
>The instruction is originally listed at [[LinuxBootDiskF...
For the convenience of the explanation for the command li...
inside squire brackets [ ]. This is an example, and the d...
highly dependent on SD cards.~
** Unmount SD card [#o84d4969]
>Unmount is required for creating partitions and formatti...
the SD card.~
>
Assume that presently a SD card is mounted as it is descr...
$ [df -h]
Filesystem Size Used Avail Use% Mounted on
...
/dev/sdc1 400M 94M 307M 24% /media/disk
...
>
The name of the SD card is '''disk''', and the SD card is...
Unmount the SD card.~
$ [umount /media/disk]
** Initialization and configuration of partitions [#o5b41...
>Execute '''fdisk''' command. The parameter of '''fdisk''...
card is located. The directory may differ, depending on S...
$ [sudo fdisk /dev/sdc]
Command (m for help): [p]
Disk /dev/sdc: 2021 MB, 2021654528 bytes
255 heads, 63 sectors/track, 245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id ...
/dev/sdc1 * 1 246 1974240+ c ...
Partition 1 has different physical/logical endings:
phys=(244, 254, 63) logical=(245, 200, 19)
>Write down the number of bytes on the SD card. The numbe...
Delete all partitions that already exist in the SD card.
Command (m for help): [d]
Selected partition 1
>Change to expert mode.
Command (m for help): [x]
>Set the number of heads to 255.
Expert Command (m for help): [h]
Number of heads (1-256, default xxx): [255]
>Set the number of sectors to 63.
Expert Command (m for help): [s]
Number of sectors (1-63, default xxx): [63]
>The number of cylinders is differ, and it is dependent o...
The outcome is truncated, do not be rounded.
#cylinders = FLOOR (the number of Bytes on the SD Card (...
>The number of cylinders for the SD card used here is cal...
2021654528 / 255 / 63 / 512 = 245.79
-> 245
>Set the number of cylinders, The number of cylinders is ...
Expert Command (m for help): [c]
Number of cylinders (1-256, default xxx): [enter the num...
>Return to normal mode.
Expert Command (m for help): [r]
>Create FAT32 partition in the SD card.
Command (m for help): [n]
Command action
e extended
p primary partition (1-4)
[p]
Partition number (1-4): [1]
First cylinder (1-245, default 1): [(press Enter)]
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-245, defau...
Command (m for help): [t]
Selected partition 1
Hex code (type L to list codes): [c]
Changed system type of partition 1 to c (W95 FAT32 (LBA))
>Set up the boot flag in the first partition, and make it...
Command (m for help): [a]
Partition number (1-4): [1]
>Create the second partition for the root file system of ...
Command (m for help): [n]
Command action
e extended
p primary partition (1-4)
[p]
Partition number (1-4): [2]
First cylinder (52-245, default 52): [(press Enter)]
Using default value 52
Last cylinder or +size or +sizeM or +sizeK (52-245, defa...
Using default value 245
>Check up configurations of the newly created partitions.
Command (m for help): [p]
Disk /dev/sdc: 2021 MB, 2021654528 bytes
255 heads, 63 sectors/track, 245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id ...
/dev/sdc1 * 1 51 409626 c ...
/dev/sdc2 52 245 1558305 83 ...
>Save the changes in the partition table.
Command (m for help): [w]
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with erro...
The kernel still uses the old table.
The new table will be used at the next reboot.
WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additio...
information.
Syncing disks.
** Format the file system [#fa62126f]
>Format the FAT32 partition and the Linux partition.~
In the example described below, '''LABLE1''' and '''LABEL...
freely decided. Input the names of the partitions.~
$ [sudo mkfs.msdos -F 32 /dev/sdc1 -n LABEL1]
mkfs.msdos 2.11 (12 Mar 2005)
$ [sudo mkfs.ext3 -L LABEL2 /dev/sdc2]
mke2fs 1.40-WIP (14-Nov-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
195072 inodes, 389576 blocks
19478 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=402653184
12 block groups
32768 blocks per group, 32768 fragments per group
16256 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting informatio...
** Place the image files of bootloaders [#g3d0d8f1]
>The image files of bootloaders are set into the SD card.~
First, remount the SD card. (Gently push the SD card into...
SD card into its folder again.) The mount point of SD car...
which is suitable to its system.~
>X-Loader, the first bootloader, does have strict require...
the direction described below.~
- X-Loader is placed right after formatting FAT32 partiti...
- It places the top directly of the partition.
- The name of the file is set as ''MLO''.~
>
$ [cp x-load.bin.ift /media/LABEL1/MLO]
>Then, U-Boot, the second boot loader, is placed into the...
- The file name is changed as '''u-boot.bin'''.
>
$ [cp u-boot.bin /media/LABEL1/u-boot.bin]
>Place Linux kernel
- Change the name of Linux kernel image to '''uImage'''.
>
$ [cp uImage /media/LABEL1/uImage]
>To make mistakes on the order of placing files and/or in...
fix the mistakes is to redo from the reformatting the par...
>Now, complete the whole process, and unmount the SD card...
* Boot up from SD card [#a2e3923a]
>~
Insert the SD card in which the bootloaders are installed...
Set up the scanning order of BootROM. To put the SD card ...
power is turned on. bc10 boots up from the SD card.~
* Reference [#id8c89d9]
-This explains how to change the boot order of bootROM.
--http://e2e.ti.com/support/dsp/omap_applications_process...
-Please look at BootROM section for the details
--http://elinux.org/BeagleBoard#BootRom
-This is the reference of the whole boot process for Beag...
--http://code.google.com/p/beagleboard/wiki/LinuxBootDisk...
* Revision History [#ja9665cf]
- 2010/10/20 This article is originally uploaded
- 2011/01/14 The information of Linux kernel is added
End:
[[bc10/Software]]
- Contents
#contents
* Summary [#x7a308ba]
>~
This section explains the boot process of bc10. It covers...
turning on the power to starting up the OS. It takes thre...
X-Loader, and U-Boot. bootROM is factory preconfigured, a...
of it. The The detail information of X-Loader and U-Boot ...
[[bc10/u-boot]], respectively.~
* Boot Sequence [#se04ae6f]
>~
As bc10 ([[OMAP3530:http://focus.ti.com/docs/prod/folders...
order of the boot sequence in bc10 is described as below....
boot process starts right after power is turned on.~
+ BootROM
+ X-Loader
+ U-Boot
+ uImage (Linux kernel)
* BootROM [#oab27cef]
>~
OMAP3530 contains BootROM, which includes the code that h...
of the code, BootROM start scanning the devices for the b...
directly accesses the devices. The devices that BootROM c...
- NAND Flash
- MMC/SD card
- USB
- Serial~
>BootROM looks at the '''sys_boot''' pins to determine th...
setting of the '''sys_boot''' pins is rearranged, the ord...
** Scanning Order [#e32e3d00]
>~
bc10 and BeagleBoard have the same configuration for the ...
order. While power is turned on (pressing RESET button), ...
USER button is pressed or not.~
- USER button is NOT pressed as RESET button is pressed~
-- ''NAND -> USB -> UART -> MMC/SD''~
- USER button is pressed as RESET button is pressed~
-- ''USB -> UART -> MMC/SD -> NAND''~
>(Pressing RESET button means that power is turned on.)
>~
If BootROM cannot find the bootloader in one device, then...
scanning it.~
>
The two sets of the scanning order are very useful and pr...
do not be necessary to press USER button. However, in som...
NAND does not work appropriately, or NAND is blank since ...
button, and access bootloaders in the SD card.~
* X-Loader [#rb30f24e]
>~
X-Loader is the first bootloader whose objective is to se...
X-Loader access the devices in such order.~
+ MMC/SD card
+ NAND Flash
>For the information of how to build X-Loader from the so...
* U-Boot [#z6e34fcb]
>~
U-Boot is the second bootloader. This is a multifunctiona...
hardware. U-Boot is equipped with the command line interf...
and write in NAND. Since U-Boot is highly functional, any...
please look at [[bc10/u-boot]].~
* Linux Kernel [#qb5bb6c4]
>
Linux kernel image file is named '''uImage''', and '''uIm...
Android environment. To build Linux kernel ('''uImage''')...
* Create bootable SD card [#mef5758b]
** Outline [#e00adbcd]
>
This section explains how to create a bootable SD card, w...
is the easiest way to boot bc10 since NAND Flash of bc10 ...
of bc10, it cannot be booted from the microSD card slot. ...
assumes that the OS which U-Boot boot up is Linux and tha...
contains the tools for booting, and the second partition ...
contents of each partition are described as below.~
- FAT32 partition
-- X-Loader
-- U-Boot
-- Linux kernel
- Linux partition
-- Linux toot file system
>It is assumed that working environment is Linux. ~
The order of the instructions is shown below.~
+ Initialization and setting of partitions
+ Format the bootlorder file system
+ Placing the bootlorder files
>The instruction is originally listed at [[LinuxBootDiskF...
For the convenience of the explanation for the command li...
inside squire brackets [ ]. This is an example, and the d...
highly dependent on SD cards.~
** Unmount SD card [#o84d4969]
>Unmount is required for creating partitions and formatti...
the SD card.~
>
Assume that presently a SD card is mounted as it is descr...
$ [df -h]
Filesystem Size Used Avail Use% Mounted on
...
/dev/sdc1 400M 94M 307M 24% /media/disk
...
>
The name of the SD card is '''disk''', and the SD card is...
Unmount the SD card.~
$ [umount /media/disk]
** Initialization and configuration of partitions [#o5b41...
>Execute '''fdisk''' command. The parameter of '''fdisk''...
card is located. The directory may differ, depending on S...
$ [sudo fdisk /dev/sdc]
Command (m for help): [p]
Disk /dev/sdc: 2021 MB, 2021654528 bytes
255 heads, 63 sectors/track, 245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id ...
/dev/sdc1 * 1 246 1974240+ c ...
Partition 1 has different physical/logical endings:
phys=(244, 254, 63) logical=(245, 200, 19)
>Write down the number of bytes on the SD card. The numbe...
Delete all partitions that already exist in the SD card.
Command (m for help): [d]
Selected partition 1
>Change to expert mode.
Command (m for help): [x]
>Set the number of heads to 255.
Expert Command (m for help): [h]
Number of heads (1-256, default xxx): [255]
>Set the number of sectors to 63.
Expert Command (m for help): [s]
Number of sectors (1-63, default xxx): [63]
>The number of cylinders is differ, and it is dependent o...
The outcome is truncated, do not be rounded.
#cylinders = FLOOR (the number of Bytes on the SD Card (...
>The number of cylinders for the SD card used here is cal...
2021654528 / 255 / 63 / 512 = 245.79
-> 245
>Set the number of cylinders, The number of cylinders is ...
Expert Command (m for help): [c]
Number of cylinders (1-256, default xxx): [enter the num...
>Return to normal mode.
Expert Command (m for help): [r]
>Create FAT32 partition in the SD card.
Command (m for help): [n]
Command action
e extended
p primary partition (1-4)
[p]
Partition number (1-4): [1]
First cylinder (1-245, default 1): [(press Enter)]
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-245, defau...
Command (m for help): [t]
Selected partition 1
Hex code (type L to list codes): [c]
Changed system type of partition 1 to c (W95 FAT32 (LBA))
>Set up the boot flag in the first partition, and make it...
Command (m for help): [a]
Partition number (1-4): [1]
>Create the second partition for the root file system of ...
Command (m for help): [n]
Command action
e extended
p primary partition (1-4)
[p]
Partition number (1-4): [2]
First cylinder (52-245, default 52): [(press Enter)]
Using default value 52
Last cylinder or +size or +sizeM or +sizeK (52-245, defa...
Using default value 245
>Check up configurations of the newly created partitions.
Command (m for help): [p]
Disk /dev/sdc: 2021 MB, 2021654528 bytes
255 heads, 63 sectors/track, 245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id ...
/dev/sdc1 * 1 51 409626 c ...
/dev/sdc2 52 245 1558305 83 ...
>Save the changes in the partition table.
Command (m for help): [w]
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with erro...
The kernel still uses the old table.
The new table will be used at the next reboot.
WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additio...
information.
Syncing disks.
** Format the file system [#fa62126f]
>Format the FAT32 partition and the Linux partition.~
In the example described below, '''LABLE1''' and '''LABEL...
freely decided. Input the names of the partitions.~
$ [sudo mkfs.msdos -F 32 /dev/sdc1 -n LABEL1]
mkfs.msdos 2.11 (12 Mar 2005)
$ [sudo mkfs.ext3 -L LABEL2 /dev/sdc2]
mke2fs 1.40-WIP (14-Nov-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
195072 inodes, 389576 blocks
19478 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=402653184
12 block groups
32768 blocks per group, 32768 fragments per group
16256 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting informatio...
** Place the image files of bootloaders [#g3d0d8f1]
>The image files of bootloaders are set into the SD card.~
First, remount the SD card. (Gently push the SD card into...
SD card into its folder again.) The mount point of SD car...
which is suitable to its system.~
>X-Loader, the first bootloader, does have strict require...
the direction described below.~
- X-Loader is placed right after formatting FAT32 partiti...
- It places the top directly of the partition.
- The name of the file is set as ''MLO''.~
>
$ [cp x-load.bin.ift /media/LABEL1/MLO]
>Then, U-Boot, the second boot loader, is placed into the...
- The file name is changed as '''u-boot.bin'''.
>
$ [cp u-boot.bin /media/LABEL1/u-boot.bin]
>Place Linux kernel
- Change the name of Linux kernel image to '''uImage'''.
>
$ [cp uImage /media/LABEL1/uImage]
>To make mistakes on the order of placing files and/or in...
fix the mistakes is to redo from the reformatting the par...
>Now, complete the whole process, and unmount the SD card...
* Boot up from SD card [#a2e3923a]
>~
Insert the SD card in which the bootloaders are installed...
Set up the scanning order of BootROM. To put the SD card ...
power is turned on. bc10 boots up from the SD card.~
* Reference [#id8c89d9]
-This explains how to change the boot order of bootROM.
--http://e2e.ti.com/support/dsp/omap_applications_process...
-Please look at BootROM section for the details
--http://elinux.org/BeagleBoard#BootRom
-This is the reference of the whole boot process for Beag...
--http://code.google.com/p/beagleboard/wiki/LinuxBootDisk...
* Revision History [#ja9665cf]
- 2010/10/20 This article is originally uploaded
- 2011/01/14 The information of Linux kernel is added
Page: