Site Tools


swarren_brain_dump

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
swarren_brain_dump [2011/11/21 05:53] – Say "main partition" where appropriate. swarrenswarren_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, you should probably add "--odmdata 0x200c0000" to all+(For correctness, you should probably add "--odmdata 0x800c0085" to all
 the nvflash commands. See the nvflash commands. See
 http://nv-tegra.nvidia.com/gitweb/?p=linux-2.6.git;a=blob;f=arch/arm/mach-tegra/odm_kit/query/harmony/tegra_devkit_custopt.h;h=1ec7010911454f19a5018952fd245785a62c59ad;hb=0e52d7fe25b11a656c376a37890be219470661fb http://nv-tegra.nvidia.com/gitweb/?p=linux-2.6.git;a=blob;f=arch/arm/mach-tegra/odm_kit/query/harmony/tegra_devkit_custopt.h;h=1ec7010911454f19a5018952fd245785a62c59ad;hb=0e52d7fe25b11a656c376a37890be219470661fb
Line 75: Line 75:
  
   cp ac100.bct ac100.bct.orig   cp ac100.bct ac100.bct.orig
-  dd if=/dev/zero of=ac100.bct seek=2704 bs=48 count=conv=notrunc+  dd if=/dev/zero of=ac100.bct seek=2704 bs=count=48 conv=notrunc
  
 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's quite a bit of Mainline U-Boot has some Tegra support now. There's quite a bit of
Line 145: Line 147:
 You can use this command: You can use this command:
  
-  sudo ./nvflash --bl bootloader.bin --bct ac100.bct --odmdata 0x200c0000 --download 4 ~/git_wa/u-boot/u-boot.bin+  sudo ./nvflash --bl bootloader.bin --bct ac100.bct --odmdata 0x800c0085 --download 4 ~/git_wa/u-boot/u-boot.bin
  
 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" at the start. The MMC device has two 1MiB "boot sectors" at the start.
 +**Note** from stuw: some ac100 have two 2Mib "boot sectors"
  
 Note that the term "boot sectors" comes from a flash memory background, Note that the term "boot sectors" comes from a flash memory background,
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    = u-boot.bin,0x00108000,0x00108000,Complete;   BootLoader    = u-boot.bin,0x00108000,0x00108000,Complete;
swarren_brain_dump.1321851180.txt.gz · Last modified: 2011/11/21 05:53 by swarren