swarren_brain_dump
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
swarren_brain_dump [2011/11/20 11:56] – [Mainline U-Boot status] formating ggrandou | swarren_brain_dump [2012/12/26 07:01] (current) – [Using a GPT partition table] stuw | ||
---|---|---|---|
Line 52: | Line 52: | ||
sudo ./nvflash -r ${downloads} | sudo ./nvflash -r ${downloads} | ||
- | (For correctness, | + | (For correctness, |
the nvflash commands. See | the nvflash commands. See | ||
http:// | http:// | ||
Line 75: | Line 75: | ||
cp ac100.bct ac100.bct.orig | cp ac100.bct ac100.bct.orig | ||
- | dd if=/ | + | dd if=/ |
If you don't nvflash might fail later with e.g.: | If you don't nvflash might fail later with e.g.: | ||
Line 87: | Line 87: | ||
(as of 2011/11/19) | (as of 2011/11/19) | ||
+ | |||
+ | (2012/01/13 UPDATE: most of the patches mentioned are upstream now, see [[uboot]] for the temporary tree with a known working version -- paulf) | ||
Mainline U-Boot has some Tegra support now. There' | Mainline U-Boot has some Tegra support now. There' | ||
Line 145: | Line 147: | ||
You can use this command: | You can use this command: | ||
- | sudo ./nvflash --bl bootloader.bin --bct ac100.bct --odmdata | + | sudo ./nvflash --bl bootloader.bin --bct ac100.bct --odmdata |
Note: This works for me now. It did not work for me before when ALL of | Note: This works for me now. It did not work for me before when ALL of | ||
Line 215: | Line 217: | ||
and ran the following nvflash command to write this to the AC100: | and ran the following nvflash command to write this to the AC100: | ||
- | + | ||
bin=bootloader.bin | bin=bootloader.bin | ||
cfg=flash.cfg | cfg=flash.cfg | ||
bct=ac100.bct | bct=ac100.bct | ||
- | odm=0x200c0000 | + | odm=0x800c0085 |
| | ||
sudo ./nvflash \ | sudo ./nvflash \ | ||
Line 242: | Line 244: | ||
The MMC device has two 1MiB "boot sectors" | The MMC device has two 1MiB "boot sectors" | ||
+ | **Note** from stuw: some ac100 have two 2Mib "boot sectors" | ||
Note that the term "boot sectors" | Note that the term "boot sectors" | ||
Line 302: | Line 305: | ||
====== Using a GPT partition table ====== | ====== Using a GPT partition table ====== | ||
- | Given the existence of MMC boot-sectors, | + | Given the existence of MMC boot-sectors, |
A diagram: | A diagram: | ||
Line 314: | Line 317: | ||
| | | | ||
| | | | ||
- | | | + | | |
| | | | ||
| | | | ||
Line 327: | Line 330: | ||
Write the BCT, Tegra PT, bootloader to flash as I described above. | Write the BCT, Tegra PT, bootloader to flash as I described above. | ||
- | Create a disk image for the " | + | Create a disk image for the main partition |
dd if=/ | dd if=/ | ||
Line 341: | Line 344: | ||
The following writes the 34 GPT (512-byte) sectors to the start of the | The following writes the 34 GPT (512-byte) sectors to the start of the | ||
- | " | + | main partition |
sudo ./nvflash --bl bootloader.bin --rawdevicewrite 1024 9 image.bin | sudo ./nvflash --bl bootloader.bin --rawdevicewrite 1024 9 image.bin | ||
Line 389: | Line 392: | ||
a) Use bct_dump (from cbootimage) to create ac100-cboot.cfg. | a) Use bct_dump (from cbootimage) to create ac100-cboot.cfg. | ||
- | b) Edit ac100-cboot.cfg to add the following line at the end: | + | b) Edit ac100-cboot.cfg to add the following line **at the end**: |
BootLoader | BootLoader |
swarren_brain_dump.1321786565.txt.gz · Last modified: 2011/11/20 11:56 by ggrandou