Too complicated. Here's what I do to test builds without flashing it into my R7800 NAND flash:
-
Before you start, you need to setup your computer as a TFTP server, and copy the initramfs image into the TFTP server's root directory. Let's assume that the name of the initramfs image is called 'lede-nss.bin'. Name of the file is not important.
-
Connect your computer's ethernet port to one of the LAN ports of your R7800. Assign a fixed IP to your computer's ethernet port connected to the R7800. The IP must be in the 192.168.1.0/24 segment and not 192.168.1.1, as this IP is used by the R7800 when it's booted into U-Boot. Let's assume the IP assigned to your computer is 192.168.1.100.
-
Connect your R7800 serial port to your computer so that you can see the R7800 console output and power on your R7800. You should see the R7800's U-Boot booting via the serial console.
-
Interrupt U-Boot by pressing any key (in the serial console) when prompted. You have only 2-3 seconds before U-Boot proceeds to boot from the NAND flash.
-
Wait a while (say 3-5s after step 4.) for the R7800 to setup it's LAN port. Load the initramfs image into your R7800 by keying this command into your R7800 serial console:
tftpboot 50000000 192.168.1.100:lede-nss.bin
- You should see some activity in the serial console while the image loads via the LAN port. Once loading completes and the serial console command prompt returns, issue this command to boot the image loaded into the R7800's memory:
bootm
You should see the Linux kernel booting into lede/openwrt at this point.
Give it a try.