Skip to content

Commit

Permalink
rpi3: update uboot.env.txt defaults
Browse files Browse the repository at this point in the history
* Change kernel commandline to use TCP instead of UDP. Recent rpcbind
  defaults use TCP only (check with: 'rpcinfo -p <myip> | grep nfs').
  Using TCP should give a more robust connections overall.
* Add "nfsversion" variable to ease experimentation with different NFS
  versions when using various systems.
* Update "nfsserverip" IP address to match examples in RPi3
  documentation.

Signed-off-by: Joakim Bech <[email protected]>
Acked-by: Jerome Forissier <[email protected]>
  • Loading branch information
jbech-linaro authored and jforissier committed Jan 21, 2025
1 parent 05f265e commit 9cd5e40
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions rpi3/firmware/uboot.env.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ fdt_addr_r=0x01000000
kernel_addr_r=0x02000000

# NFS/TFTP boot configuraton
gatewayip=192.168.1.1
gatewayip=192.168.0.1
netmask=255.255.255.0
nfsserverip=192.168.1.100
nfsserverip=192.168.0.100
nfspath=/srv/nfs/rpi
nfsversion=4

# bootcmd & bootargs configuration
preboot=usb start
Expand All @@ -31,6 +32,6 @@ load_kernel=fatload mmc 0:1 ${kernel_addr_r} kernel8.img
mmcboot=run load_kernel; run set_bootargs_tty set_bootargs_mmc set_common_args; run boot_it
nfsboot=run load_kernel; run set_bootargs_tty set_bootargs_nfs set_common_args; run boot_it
set_bootargs_tty=setenv bootargs console=${ttyconsole} console=${sttyconsole},${baudrate}
set_bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs rw rootfstype=nfs nfsroot=${nfsserverip}:${nfspath},udp,vers=3 ip=dhcp
set_bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs rw rootfstype=nfs nfsroot=${nfsserverip}:${nfspath},tcp,vers=${nfsversion} ip=dhcp
set_bootargs_mmc=setenv bootargs ${bootargs} root=/dev/mmcblk0p2 rw rootfs=ext4
set_common_args=setenv bootargs ${bootargs} smsc95xx.macaddr=${ethaddr} 'ignore_loglevel dma.dmachans=0x7f35 rootwait 8250.nr_uarts=1 elevator=deadline fsck.repair=yes bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1080 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 dwc_otg.fiq_enable=0 dwc_otg.fiq_fsm_enable=0 dwc_otg.nak_holdoff=0'

0 comments on commit 9cd5e40

Please sign in to comment.