mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 23:42:43 +00:00
uboot-mediatek: increase USB probe delay on OpenWrt One
This solves compatibility issues with some pendrives. Originally reported by "HIDE-r" on the forum. Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
parent
1af15e8a2b
commit
5af4d4f6b6
@ -469,7 +469,7 @@
|
|||||||
+CONFIG_LMB_MAX_REGIONS=64
|
+CONFIG_LMB_MAX_REGIONS=64
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/openwrt-one-nor_env
|
+++ b/openwrt-one-nor_env
|
||||||
@@ -0,0 +1,47 @@
|
@@ -0,0 +1,48 @@
|
||||||
+ethaddr_factory=mtd read factory 0x46000000 0x0 0x20000 && env readmem -b ethaddr 0x4600002a 0x6 ; setenv ethaddr_factory
|
+ethaddr_factory=mtd read factory 0x46000000 0x0 0x20000 && env readmem -b ethaddr 0x4600002a 0x6 ; setenv ethaddr_factory
|
||||||
+bl2_mtd_write=mtd erase bl2-nor && mtd write bl2-nor $loadaddr 0x0 0x40000
|
+bl2_mtd_write=mtd erase bl2-nor && mtd write bl2-nor $loadaddr 0x0 0x40000
|
||||||
+bl2_tftp_write=tftpboot $loadaddr $bootfile_bl2_nor && run bl2_mtd_write
|
+bl2_tftp_write=tftpboot $loadaddr $bootfile_bl2_nor && run bl2_mtd_write
|
||||||
@ -510,6 +510,7 @@
|
|||||||
+serverip=192.168.11.23
|
+serverip=192.168.11.23
|
||||||
+tftp_boot=run led_start ; tftpboot $loadaddr $bootfile && bootm $loadaddr#$bootconf
|
+tftp_boot=run led_start ; tftpboot $loadaddr $bootfile && bootm $loadaddr#$bootconf
|
||||||
+tftp_write=run led_start ; tftpboot $loadaddr $bootfile && mtd erase recovery 0x0 ${filesize} && mtd write recovery $loadaddr 0x0 ${filesize}
|
+tftp_write=run led_start ; tftpboot $loadaddr $bootfile && mtd erase recovery 0x0 ${filesize} && mtd write recovery $loadaddr 0x0 ${filesize}
|
||||||
|
+usb_pgood_delay=4000
|
||||||
+usb_recovery=run led_start ; usb start && run usb_recovery_bl2 && run usb_recovery_ubi && run led_loop_done
|
+usb_recovery=run led_start ; usb start && run usb_recovery_bl2 && run usb_recovery_ubi && run led_loop_done
|
||||||
+usb_recovery_bl2=fatload usb 0:1 ${loadaddr} ${recoverfile_bl2} && run recovery_write_bl2
|
+usb_recovery_bl2=fatload usb 0:1 ${loadaddr} ${recoverfile_bl2} && run recovery_write_bl2
|
||||||
+usb_recovery_ubi=fatload usb 0:1 ${loadaddr} ${recoverfile_ubi} && run recovery_write_ubi
|
+usb_recovery_ubi=fatload usb 0:1 ${loadaddr} ${recoverfile_ubi} && run recovery_write_ubi
|
||||||
@ -519,7 +520,7 @@
|
|||||||
+_bootmenu_update_title=setenv _bootmenu_update_title ; setenv bootmenu_title "$bootmenu_title [33m$ver[0m"
|
+_bootmenu_update_title=setenv _bootmenu_update_title ; setenv bootmenu_title "$bootmenu_title [33m$ver[0m"
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/openwrt-one-spi-nand_env
|
+++ b/openwrt-one-spi-nand_env
|
||||||
@@ -0,0 +1,60 @@
|
@@ -0,0 +1,61 @@
|
||||||
+ethaddr_factory=mtd read factory 0x46000000 0x0 0x20000 && env readmem -b ethaddr 0x4600002a 0x6 ; setenv ethaddr_factory
|
+ethaddr_factory=mtd read factory 0x46000000 0x0 0x20000 && env readmem -b ethaddr 0x4600002a 0x6 ; setenv ethaddr_factory
|
||||||
+ipaddr=192.168.11.11
|
+ipaddr=192.168.11.11
|
||||||
+serverip=192.168.11.23
|
+serverip=192.168.11.23
|
||||||
@ -571,6 +572,7 @@
|
|||||||
+ubi_read_production=ubi read $loadaddr fit && iminfo $loadaddr && run ubi_prepare_rootfs
|
+ubi_read_production=ubi read $loadaddr fit && iminfo $loadaddr && run ubi_prepare_rootfs
|
||||||
+ubi_read_recovery=ubi check recovery && ubi read $loadaddr recovery
|
+ubi_read_recovery=ubi check recovery && ubi read $loadaddr recovery
|
||||||
+ubi_remove_rootfs=ubi check rootfs_data && ubi remove rootfs_data
|
+ubi_remove_rootfs=ubi check rootfs_data && ubi remove rootfs_data
|
||||||
|
+usb_pgood_delay=4000
|
||||||
+usb_recover=run led_start ; usb start && run usb_recover_production && run led_loop_done
|
+usb_recover=run led_start ; usb start && run usb_recover_production && run led_loop_done
|
||||||
+usb_recover_production=fatload usb 0:1 ${loadaddr} ${bootfile_upg} && iminfo $loadaddr && run ubi_write_production
|
+usb_recover_production=fatload usb 0:1 ${loadaddr} ${bootfile_upg} && iminfo $loadaddr && run ubi_write_production
|
||||||
+ubi_write_fip=run ubi_remove_rootfs ; ubi check fip && ubi remove fip ; ubi create fip $filesize static && ubi write $loadaddr fip $filesize
|
+ubi_write_fip=run ubi_remove_rootfs ; ubi check fip && ubi remove fip ; ubi create fip $filesize static && ubi write $loadaddr fip $filesize
|
||||||
|
Loading…
Reference in New Issue
Block a user