zux

Members
  • Content Count

    2
  • Joined

  • Last visited

  1. zux

    NFS Boot from SPI

    For building nfs image and vmlinuz,uInitrd, *.dtb On ubuntu 18.04 apt -y install git git clone https://github.com/armbian/build cd build ./compile.sh ROOTFS_TYPE=nfs wait.....................................................................DONE cd output/images ls .....nfsboot-rootfs.tgz .....nfsboot.img .....nfsboot-rootfs.tgz tar -xzf to nfs export dir fdisk -l .....nfsboot.img ........Orangepizero_Ubuntu_bionic_next_......._nfsboot.img1 8192 131071 122880 60M 83 Linux 8192 * 512 = 4194304 mount -o loop,offset=4194304 .....nfsboot.img /mnt copy vmlinuz,uInitrd, and dtb for you platform to tftp dir
  2. zux

    NFS Boot from SPI

    ## set this to NFS root path (ip:path) ## or else provide dhcp option 17 (root-path) #setenv nfs_root # for DHCP setenv net_setup "ip=dhcp" # for static configuration see documentation # https://github.com/torvalds/linux/blob/master/Documentation/filesystems/nfs/nfsroot.txt # setenv net_setup "ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf>:<dns0-ip>:<dns1-ip>" # you may need to add extra kernel arguments specific to your device setenv bootargs "console=tty1 console=ttyS0,115200 root=/dev/nfs ${net_setup} rw rootflags=noatime,nodiratime disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 enforcing=0 logle if test -n ${nfs_root}; then setenv bootargs "${bootargs} nfsroot=${nfs_root}" fi tftp ${kernel_addr_r} ${serverip}:vmlinuz-4.14.91-sunxi tftp ${ramdisk_addr_r} ${serverip}:uInitrd-4.14.91-sunxi tftp ${fdt_addr_r} ${serverip}:sun8i-h2-plus-orangepi-zero.dtb bootz ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r} save and do mkimage -C none -A arm -T script -d boot.cmd boot.scr.uimg copy boot.scr.uimg, vmlinuz,uInitrd, *.dtb to tftp folder and boot. Working for me