Talk:Step-by-step Buildroot/Busybox Root File System

From odroid US
Revision as of 22:08, 18 January 2013 by Osterluk (Talk | contribs) (Created page with "<pre> cp -a zImage zImage.prev rm zImage uInitrd wget http://odroid.us/odroid/users/osterluk/nfs-mounting/boot-nfs.txt wget http://odroid.us/odroid/users/osterluk/nfs-mountin...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

cp -a zImage zImage.prev
rm zImage uInitrd
wget http://odroid.us/odroid/users/osterluk/nfs-mounting/boot-nfs.txt
wget http://odroid.us/odroid/users/osterluk/nfs-mounting/boot-nfs.scr
wget http://odroid.us/odroid/users/osterluk/nfs-mounting/zImage
wget http://odroid.us/odroid/users/osterluk/nfs-mounting/uInitrd
mv boot.scr boot.scr.orig
cp boot-nfs.scr boot.scr
sync

d8dad1990a04d899c31487db45f92e27  zImage


# expand buildroot
tar -xvzf buildroot-2012.11.tar.bz2

cd buildroot-2012.11/

make beaglebone_defconfig
edited the configuration

root file system image lands here:
./output/images/rootfs.tar.gz


 ln -s $PWD ~/targetrfs

chmod 777 target

~/guest/highend/odroidu2/buildroot/buildroot-2012.11/output $ sudo chown -R root:root target


sudo chown root:root ~/targetrfs



sudo tar -xvf /tftpboot/rootfs.tar



karlo@karlossd ~/targetrfs $ mkdir scripts
karlo@karlossd ~/targetrfs $ cd scripts
karlo@karlossd ~/targetrfs/scripts $ ls
karlo@karlossd ~/targetrfs/scripts $ echo "dummy nfs-premount" > nfs-premount
karlo@karlossd ~/targetrfs/scripts $ chmod 777 nfs-premount
karlo@karlossd ~/targetrfs/scripts $ 


karlo@karlossd ~/targetrfs/scripts $ chown root:root nfs-premount 
chown: changing ownership of `nfs-premount': Operation not permitted
karlo@karlossd ~/targetrfs/scripts $ sudo chown root:root nfs-premount 
karlo@karlossd ~/targetrfs/scripts $ cd ..
karlo@karlossd ~/targetrfs $ sudo chown root:root scripts
karlo@karlossd ~/targetrfs $ 


                                                                                                         
#                                                                                                             
# ifconfig eth0 10.4.124.205 up                                                                               
# ping 10.4.124.93                                                                                            
PING 10.4.124.93 (10.4.124.93): 56 data bytes                                                                 
64 bytes from 10.4.124.93: seq=0 ttl=64 time=4.171 ms                                                         
64 bytes from 10.4.124.93: seq=1 ttl=64 time=0.579 ms                                                         
�                                                                                                             
--- 10.4.124.93 ping statistics ---                                                                           
2 packets transmitted, 2 packets received, 0% packet loss                                                     
round-trip min/avg/max = 0.579/2.375/4.171 ms                                                                 
# 

Check the contents of the buildroot example
<pre>
md5sum -c md5sums.txt

./nfs-mounting-boot.tgz: OK ./buildroot-2012.11.tar.bz2: OK ./odroidu2_just_busybox_defconfig: OK ./rootfs.tar.gz: OK



Step-by-step Ubuntu SD Card Setup

Step-by-step Ubuntu SD Card Setup -- for Windows Users

Step-by-step NFS-mounted Root File System


</pre>