How to U-Boot from NAS?

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

How to U-Boot from NAS?

Postby vicary » Sat Feb 28, 2015 10:41 am

I want to U-Boot my Pi via NFS.

After some Googling, I ended up with these:
1. I need to build a kernel for that. zImage or uImage.
2. Current versions of U-Boot supports zImage directly so I can pick whatever I please.
3. Uncompressed kernel image needs to be wrapped into an uImage.
4. I need DTB files along with that too.
5. According to http://elinux.org/RPi_U-Boot, U-Boot doesn't use config.txt

I have a few questions based on my current understandings.

1. How should I build an zImage, specifically for Arch on Pi model B?
2. How should I obtain a DTB file?
3. Without the config.txt, how shall I change those settings?
Last edited by vicary on Sat Feb 28, 2015 3:02 pm, edited 1 time in total.
vicary
 
Posts: 2
Joined: Sat Feb 28, 2015 10:26 am

Re: How should I build an zImage?

Postby moonman » Sat Feb 28, 2015 2:18 pm

1. "make zImage" will build zimage from source
2. Dtb is compiled dts which is in kernel sources, "make dtbs" will build that
3. Uboot stores its setting in its environment, depending how you build it, you can load settings from a text file

If I were you i would just store the kernel on the sd card (you need sd card either way whether you use uboot or not) and point the kernel to nfs share with rootfs.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: How to U-Boot from NAS?

Postby vicary » Tue Mar 03, 2015 1:47 pm

Thanks for answering.

Actually I want to see if I can put everything, including boot configs, up my NAS. So that after the initial dd to the SD card, I don't have to touch the Pi until it dies.
vicary
 
Posts: 2
Joined: Sat Feb 28, 2015 10:26 am

Re: How to U-Boot from NAS?

Postby WarheadsSE » Tue Mar 03, 2015 3:00 pm

Doesn't work that way, thanks to their closed bootloader.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to Raspberry Pi

Who is online

Users browsing this forum: Google [Bot] and 81 guests