My mistake, I tried the arrow up key as I'm used to SSH and it got inserted into the serial console command
I'm prepping a usb key onto my debian box now, but I have to be honest I've never done this before from commandline. How do you prep the usbkey from commandline so it boots?
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 1 14.9G 0 disk
├─sda1 8:1 1 300M 0 part
└─sda2 8:2 1 900M 0 part
your second partition is too small (3Mb) make the first one 300M or something... (i see your not root above... most of the commands below will need sudo then if you need them)
usb-stick-sample-prep
fdisk /dev/sdX
n
p
[enter]
[enter]
300M
[enter]
t
83
[enter]
n
p
[enter]
[enter]
900M
[enter]
t
83
[enter]
w
mkfs.ext2 /dev/sdX1
mkfs.ext4 /dev/sdX2
mkdir $HOME/p1; mount /dev/sdX1 $HOME/p1
mkdir $HOME/p2; mount /dev/sdX2 $HOME/p2
cp kernel $HOME/p1/
cp rootfs.tar.gz $HOME/p2/; (cd $HOME/p2; tar -xvzf rootfs.tar.gz)
sync
umount $HOME/p1
umount $HOME/p2
(p.s. i have automated scripts for all this stuff... but it's good to learn at least for the first time)
(IPQ) # run bootcmd
(Re)start USB...
USB0: Register 2000240 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
USB1: Register 2000240 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 1 for devices... 2 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
** No boot file defined **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Strong advice, create a rt2600ac device profile/ dts as early as possible, while you're still in the no-changes-to-the-flash phase - there are things in the nbg6817 profile (dual-firmware/ sysupgrade support in particular) that would be actively harmful (clobbering spi-nor partitions) on a different device.
your done... due to it being late and whatnot my brains not in a good state to look at code in detail but the root=/dev/sda2 did not get passed from uboot 'run wrtbootarg'
you can manually try setting what is in there into 'bootargs' or see if you can find the problem...
otherwise may have to wait till tommorrow till my brain has healed... just dont type 'saveenv' !!!
(every time you power off the router you have to enter all the uboot commands again... pita... but this was a rush job so it's for the best)
and to be honest... synology locking down their .pat files just motivates me to open-up/defeat their combobulated shiz-nizzle...
We'll look into it on a later time as it's getting quite late here too and it's a little bit too advanced for me to figure out myself. Thanks and have a great sleep.