Chadster766 / McDebian

Linksys WRT3200ACM, WRT1900AC, WRT1900ACS, WRT1200AC and WRT32X Router Debian Implementation
98 stars 14 forks source link

default loading uboot WRT1200AC #76

Closed Lovator closed 1 year ago

Lovator commented 2 years ago

good afternoon, tell me how to return to the standard boot from Nand memory, I installed the boot from hdd. Now I want to switch back to openwrt or native firmware.

Setenv nandboot 'scsi init;ext4load scsi 0:1 $defaultLoadAddr kernel;bootm $defaultLoadAddr' Setenv altnandboot 'scsi init;ext4load scsi 0:1 $defaultLoadAddr kernel;bootm $defaultLoadAddr' saveenv

I understand correctly that I need to enter the following commands to boot from nand ?

setenv nandboot 'setenv bootargs console=ttyS0,115200 root=/dev/mtdblock5 ro rootdelay=1 rootfstype=jffs2 earlyprintk $mtdparts;nand read $defaultLoadAddr $priKernAddr $priKernSize; bootm $defaultLoadAddr' setenv altnandboot 'setenv bootargs console=ttyS0,115200 root=/dev/mtdblock7 ro rootdelay=1 rootfstype=jffs2 earlyprintk $mtdparts;nand read $defaultLoadAddr $altKernAddr $altKernSize; bootm $defaultLoadAddr' saveenv

ValCher1961 commented 2 years ago

Hi! Yes, it is possible as you write, but in order not to make a mistake in typing a long command line, execute a short command - Marvell>> resetenv https://github.com/ValCher1961/McDebian_WRT3200ACM/wiki/%23-Using-external-drives-in-U-Boot