Skip to content

Commit a1f159c

Browse files
committed
uenv: r3/r4: add usenvme command
1 parent 73dc71d commit a1f159c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

uEnv_r3.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ buildargs=setenv bootargs "board=${board} earlycon=uart8250,mmio32,0x11002000 ${
4141
#console=${console}
4242

4343
useusb=if usb info; then usb reset;else usb start;fi; setenv device usb;setenv partition 0:1;ls ${device} ${partition}
44+
usenvme=pci enum; nvme scan;nvme info; if ls nvme 0:1;then setenv device nvme;setenv partition 0:1;else echo nvme partition not found;fi
4445

4546
useinitrd=setenv root "/dev/ram0 rw";setenv bootopts "${bootopts} initrd=${rdaddr},20M";
4647
checkrd=if printenv initrd;then if fatload ${device} ${partition} ${rdaddr} ${initrd};then run useinitrd;fi;fi
@@ -77,4 +78,3 @@ bootmenu_1=2. Boot kernel from TFTP.=run askbootnetfit
7778
bootmenu_2=3. Boot from SD/EMMC.=run newboot
7879

7980
bootmenu_default=2
80-

uEnv_r4.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ loadkernel=fatload $device $partition $kaddr ${kernel}
4141
buildargs=setenv bootargs "board=${board} console=${console} root=${root} ${bootopts}
4242

4343
useusb=if usb info; then usb reset;else usb start;fi; setenv device usb;setenv partition 0:1;ls ${device} ${partition}
44+
usenvme=pci enum; nvme scan;nvme info; if ls nvme 0:1;then setenv device nvme;setenv partition 0:1;else echo nvme partition not found;fi
4445

4546
useinitrd=setenv root "/dev/ram0 rw";setenv bootopts "${bootopts} initrd=${rdaddr},100M";
4647
checkrd=if printenv initrd;then if fatload ${device} ${partition} ${rdaddr} ${initrd};then run useinitrd;fi;fi

0 commit comments

Comments
 (0)