Jump to content

Dmahony

Members
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. For anyone else who is stuck, I had lots of issues because my TFTP server was on a different server to where DHCP is served from, I think U-boot expects the TFTP to come from the same source as DHCP server with the default settings. here is my boot.scr.uimg: setenv fdtfile sun8i-h2-plus-orangepi-zero.dtb setenv serverip 192.168.1.209 setenv ipaddr 192.168.1.170 tftp ${kernel_addr_r} vmlinuz-4.19.17-sunxi tftp ${fdt_addr_r} ${fdtfile} tftp ${ramdisk_addr_r} uInitrd usb start setenv bootargs earlyprintk console=ttyS0,115200 ip=dhcp rootwait nolock rw nfsroot=192.168.1.209:/nfsboot/ubuntu/,v3 root=/dev/nfs rootdelay=7 bootz ${kernel_addr_r} - ${fdt_addr_r} ${ramdisk_addr_r} and my /etc/export (NFS shares) # /etc/exports: the access control list for filesystems which may be exported # to NFS clients. See exports(5). # # Example for NFSv2 and NFSv3: # /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check) # # Example for NFSv4: # /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check) # /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check) # /nfsboot 192.168.*(rw,sync,no_root_squash,no_subtree_check) /nfsboot/ubuntu 192.168.*(rw,sync,no_root_squash,no_subtree_check) #
  2. I got it working with: setenv fdtfile sun8i-h2-plus-orangepi-zero.dtb usb start setenv serverip 192.168.1.209 setenv ipaddr 192.168.1.170 tftp ${kernel_addr_r} vmlinuz-4.19.17-sunxi tftp ${fdt_addr_r} ${fdtfile} setenv bootargs earlyprintk console=ttyS0,115200 ip=dhcp rootwait nolock rw nfsroot=192.168.1.209:/nfsboot/ubuntu/,v3 root=/dev/nfs rootdelay=7 bootz ${kernel_addr_r} - ${fdt_addr_r} Is there a way to 'saveenv' directly to the SPI flash or do I need to modify u-boot with my settings before compiling?
  3. Hi @zux Thanks for the extra instructions. I get stuck at 'Uncompressing Linux... done, booting the kernel.' This is what I've done: => setenv serverip 192.168.1.209 => setenv ipaddr 192.168.1.170 => setenv fdtfile sun8i-h2-plus-orangepi-zero.dtb => setenv tftpblocksize 1024 => usb start => tftp ${kernel_addr_r} vmlinuz-4.19.17-sunxi ethernet@1c30000 Waiting for PHY auto negotiation to complete. done Using ethernet@1c30000 device TFTP from server 192.168.1.209; our IP address is 192.168.1.170 Filename 'vmlinuz-4.19.17-sunxi'. Load address: 0x42000000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################ 4.4 MiB/s done Bytes transferred = 7313648 (6f98f0 hex) => tftp ${fdt_addr_r} ${fdtfile} Using ethernet@1c30000 device TFTP from server 192.168.1.209; our IP address is 192.168.1.170 Filename 'sun8i-h2-plus-orangepi-zero.dtb'. Load address: 0x43000000 Loading: ###### 3.4 MiB/s done Bytes transferred = 28787 (7073 hex) => setenv nfs_ip 192.168.1.209 => setenv rootpath /nfsboot/ubuntu/ => setenv bootargs earlyprintk console=ttyAMA0 console=tty1 ip=dhcp root=/dev/nfs rootwait => bootz ${kernel_addr_r} - ${fdt_addr_r} ## Flattened Device Tree blob at 43000000 Booting using the fdt blob at 0x43000000 Loading Device Tree to 49ff5000, end 49fff072 ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel. If anyone can help it would be much appreciated.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines