#8647: rb711 support
---------------------------+----------------------------------
Reporter: softjuanma@… | Owner:
Type: defect | Status: closed
Priority: highest | Milestone: Backfire 10.03.1
Component: luci | Version: Backfire 10.03.1 RC4
Resolution: invalid | Keywords: rb711
---------------------------+----------------------------------
Comment (by openwrtfan):
@onnuex: Apologies for the delay in getting back. My 711r3 was being
detected as a 711 during the OpenWrt Ramdisk bootup, meaning the function
{{{
static void __init rb711_setup(void)
}}}
was executed, instead of
{{{
static void __init rb711r3_setup(void)
}}}
I'm guessing the reason behind this is hardcoding 'board=711' in the
config file (target/linux/ar71xx/mikrotik/config-default). I realised I
had the 711r3 version, only after getting a shell on the default RouterOS
install (using /nova/etc/devel-login tricks).
Anyway, I figured out that there wasn't any code executed for detecting
the NAND flash. And the code which was added earlier, isn't executed
either due to the rb711r3_setup function just redirecting execution to the
rb711_setup function using -
{{{
static void __init rb711r3_setup(void)
{
rb711_setup(); return;
}}}
Hence, I added the detection code to the rb711_setup function. You should
probably add those changes to the other 711 functions too.
{{{
static void __init rb711_setup(void)
{
ath79_gpio_function_disable(AR724X_GPIO_FUNC_ETH_SWITCH_LED0_EN |
AR724X_GPIO_FUNC_ETH_SWITCH_LED1_EN |
AR724X_GPIO_FUNC_ETH_SWITCH_LED2_EN |
AR724X_GPIO_FUNC_ETH_SWITCH_LED3_EN |
AR724X_GPIO_FUNC_ETH_SWITCH_LED4_EN);
//detection code start
rb750_nand_data.nce_line = RB750_NAND_NCE;
rb750_nand_data.enable_pins = rb750_nand_enable_pins;
rb750_nand_data.disable_pins = rb750_nand_disable_pins;
rb750_nand_data.latch_change = rb750_latch_change;
platform_device_register(&rb750_nand_device);
//detection code end
ath79_init_mac(ath79_eth0_data.mac_addr, ath79_mac_base, 0);
}}}
This will make it detect the Toshiba 128 MB NAND Flash and load the 3
partitions from it. I was successful in mounting the rootfs partition
(yaffs) and writing the file /nova/etc/devel-login to it.
Let me know if you have any questions/issues replicating this.
--
Ticket URL: <https://dev.openwrt.org/ticket/8647#comment:9>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets