by strata » Mon Mar 11, 2013 11:19 pm
$this->bbcode_second_pass_quote('Gary13579', 'C')an someone please post step by step instructions for getting nv-u-boot working on the SD card? I cannot get it working after spending hours messing with it.
It's still in the works. A few of us have been running eMMC installs with nv-U-boot but I don't know when.
Here is a rough method:
1. Remove the bottom cover (remember there are screws underneath the rubber feet)
2. If there is a metallic ring-shaped sticker around the screw hole closest to the USB3 port, remove it.
3. Boot Arch from the SD card using the already established method.
4. install the flashroom-google package.
5. download this file:
https://www.dropbox.com/s/6pzvraf3ko14s ... now.bin.gz6. gunzip nv_image-snow.bin.gz
7. flashrom -p linux_spi:dev=/dev/spidev1.0 -r original_image-snow.bin
8. flashrom -p linux_spi:dev=/dev/spidev1.0 -w nv_image-snow.bin.gz
9. Powercycle. Hold down 'a' while powering up to get into a u-boot prompt.
Once you are flashed with u-boot, you will need to create a SD card that boots.
I used cgdisk (from gptfdisk package) and created a 16MB ext2 followed by a jfs root.
then mkfs.ext2 and mkfs.jfs them. Put vmlinux.uimg from linux-chromebook on the ext2 partition and untar your rootfs to the jfs.
Make sure you copy the modules and firmware from linux-chromebook in the proper place on the rootfs.
to boot it from u-boot, I used these commands:
setenv bootargs root=/dev/mmcblk1p2 rootfstype=jfs rootwait rw
mmc dev 1
ext2load mmc 1:1 42000000 vmlinux.uimg
bootm 42000000
Once booted from SD, I did essentially the same steps to create a new GPT and file systems on the eMMC. Then copied rootfs and kernel to the proper locations.
Here is what I did in u-boot to make it boot directly into arch every time:
setenv arch_boot 'setenv bootargs root=/dev/mmcblk0p2 rootfstype=jfs rootwait ro; mmc dev 0; ext2load mmc 0:1 42000000 vmlinux.uimg; bootm 42000000'
setenv bootcmd 'run arch_boot'
saveenv
There is surely a much cleaner way to go about all of this, which is why I am letting someone else do the fine polishing