[LEDE-DEV] Need fix / advice / idea

Denis Periša darkman.hr at gmail.com
Tue Mar 7 14:09:25 PST 2017


Alberto , thank you for insight!

This device in latest "RouterBOOT" (as they call it) supports
repartitioning to two partitions. But openwrt/LEDE (kernel actually)
doesent support that - as per say -

RouterBOOT booter 3.24

RouterBoard 435G

CPU frequency: 680 MHz
  Memory size: 256 MiB
    NAND size:  64 MiB
    NAND partitions: 2

Press any key within 1 seconds to enter setup.
writing settings to flash... OK

loading kernel from nand partition 1... kernel not found
writing settings to flash... OK

loading kernel from nand partition 0... OK
setting up elf image... not an elf header
kernel loading failed
trying bootp protocol.................... OK
Got IP address: 192.168.111.91
resolved mac address 00:XX:XX:00:06:XX
Gateway: 192.168.111.2
transfer started .................... transfer ok, time=1.24s
setting up elf image... OK
kernel loading failed - kernel does not support NAND partitions


Board is rb4xx .. rb433 and rb435g are almost same thing.

Thank you!


On Sun, Mar 5, 2017 at 7:31 PM, Alberto Bursi <alberto.bursi at outlook.it> wrote:
>
>
> On 03/05/2017 04:25 PM, Denis Periša wrote:
>> Hi all,
>>
>> I have situation where one of my devices (rb435g) has lot of bad
>> sectors on (NAND) kernel partition.
>>
>> First of all, are those partitions physical? Can they be somehow
>> re-partitioned by kernel cmd line or? I'm left with only under 1mb of
>> usable space so I need to make kernel that fits that available space.
>>
>> Currently `make kernel_menuconfig` does not work, any news on that?
>> Any ideas on how could I salvage this device to be usable?
>>
>> Network boot is a option, but that's last resort.
>>
>> Thank you!
>>
>
> You can try repartitioning through bootloader if you have serial
> console, see here
> https://wiki.mikrotik.com/wiki/Manual:RouterBOOT
>
> Then you may need to patch this file's partition list too and compile
> your own firmware, so LEDE actually uses the new partitions you have set
> up in the bootloader.
> https://github.com/lede-project/source/blob/master/target/linux/ar71xx/files/arch/mips/ath79/mach-rb4xx.c#L148
>
> The kernel is compiled by default to add this
> https://github.com/lede-project/source/blob/master/target/linux/ar71xx/config-4.4#L245
>
> to the kernel command line added from bootloader.
>
> I don't know that device so I can't tell you more specific info.
>
> Note that in most devices there are hardware setup or bootloader
> partitions that should not be touched.
>
> -Alberto
>
> _______________________________________________
> Lede-dev mailing list
> Lede-dev at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/lede-dev



More information about the Lede-dev mailing list