Table of Contents

SOSBOOT r5 alpha

r5 is update for sosboot (r4). Main reason for r5 is we need a way to switch from fastboot to u-boot in single step. r4 don't have some tools and shell features.

Main changes upon r4

Usage

Download ram image and use nvflash or tegrarcm to run it on ac100:

tegrarcm –bct=ac100.bct –bootloader=sos-uboot-r5-alpha.bin –loadaddr=0x108000

or

nvflash --bl sos-uboot-r5-alpha.bin --sync

NOTE: current image is too big to fit partition 5 (in nvflash numeration).

U-boot

r5 contains script that changes fastboot to u-boot. But there is some restrictions…

U-boot don't boot kernels < 3.8 (exact version is unknown, 3.8 is next step after 3.1.x for ac100). Script was tested on few machines but it may contain bugs.

Simple switch

Script will do:

If everything is ok you will get promtp to continue operation. If you are ready press y and then enter. Script will do:

How it works

Default partition table contains following partitions:

BCT, PT and EBT are partially placed in hidden sectors (kernel shows this sectors as mmcblk0bootX partitions). Some part is placed in non-hidden sectors (mmcblk0 device).

To use u-boot we need to generate new BCT (that will links to u-boot instead of fastboot). New BCT and u-boot image can be placed on mmcblk0bootX partitions (we don't need space on mmcblk0 anymore). In this case we can use GPT partition table on mmcblk0 device. We don't need auxiliary partitions MBR, EM1 and EM2 in GPT (also we don't need BCT, PT, EBT becase this partitions isn't placed/started on mmcblk0).

Sources

Sosboot r5: https://www.gitorious.org/~stuw/ac100/stuws-sosboot

Switch-to-uboot scripts: https://github.com/Stuw/ac100-self-installers

Build procedure same as for r4

Retrieve git repository:

$ git clone git://gitorious.org/~stuw/ac100/stuws-sosboot.git

Built it:

$ cd stuws-sosboot
$ ./build_all

Please note that build has been only tested on a cross-compile environment