lemmi has joined #openwrt-devel
Mangix has joined #openwrt-devel
tSYS has quit [Quit: *squeak*]
tSYS has joined #openwrt-devel
goliath has quit [Quit: SIGSEGV]
mcbridematt has quit [Quit: Leaving]
rua has quit [Remote host closed the connection]
rua has joined #openwrt-devel
mcbridematt has joined #openwrt-devel
minimal has quit [Quit: Leaving]
tersono has quit [Quit: tersono]
rmilecki has quit [Quit: Konversation terminated!]
rmilecki has joined #openwrt-devel
rmilecki has quit []
rmilecki has joined #openwrt-devel
Edu4rdSHL has quit [Ping timeout: 480 seconds]
robimarko has joined #openwrt-devel
<
robimarko>
f00b4r0: Have you had a similar "issue" with the routerbootpart parser?
<
robimarko>
[ 1.007103] RouterBoot: routerboot partition /ap806/config-space@f0000000/spi@510600/flash@0/partitions/partition@af000/soft_config (/ap806/config-space@f0000000/spi@510600/flash@0/partitions/partition@af000) "soft_config" overlaps with previous partition "dtb_config".
<
robimarko>
[ 1.031043] RouterBoot: error parsing routerboot partition /ap806/config-space@f0000000/spi@510600/flash@0/partitions/partition@af000/soft_config (/ap806/config-space@f0000000/spi@510600/flash@0/partitions/partition@af000)
<
f00b4r0>
robimarko: no, but I'm not running master
<
robimarko>
Ok, I gotta poke deeper
<
robimarko>
I am working on finally adding RB5009
<
f00b4r0>
is it possible the dtb contains the soft-config signature?
<
f00b4r0>
I don't remember if parsing is sequential or starts from beginning for all parts (should be the former, but it's been a long time)
<
robimarko>
I dont think that is the case, I added some prints:
<
robimarko>
[ 0.987201] RouterBoot: found "hard_config": offset af000 size 1000
<
robimarko>
[ 0.976686] 0x000000000000-0x000001000000 : "RouterBoot"
<
robimarko>
[ 0.993997] RouterBoot: found "soft_config": offset c0000 size 1000
<
robimarko>
[ 1.000863] RouterBoot: found "dtb_config": offset d4000 size 5a8f
<
robimarko>
So they should not overlap
<
f00b4r0>
indeed not
<
f00b4r0>
error makes no sense
<
robimarko>
Il poke around as its rather weird
<
f00b4r0>
thx. No time to dig here sadly, sorry
<
robimarko>
I commented out the goto for the error:
<
robimarko>
[ 0.986504] RouterBoot: found "hard_config": offset af000 size 1000
<
robimarko>
[ 0.975989] 0x000000000000-0x000001000000 : "RouterBoot"
<
robimarko>
[ 0.993295] RouterBoot: found "soft_config": offset c0000 size 1000
<
robimarko>
[ 1.000178] RouterBoot: found "dtb_config": offset d0000 size 5a8f
<
robimarko>
[ 1.006419] RouterBoot: routerboot partition /ap806/config-space@f0000000/spi@510600/flash@0/partitions/partition@0/soft_config (/ap806/config-space@f0000000/spi@510600/flash@0/partitions/partition@0) "soft_config" overlaps with previous partition "dtb_config".
<
robimarko>
[ 1.029671] 3 routerbootpart partitions found on MTD device RouterBoot
<
robimarko>
[ 1.036227] Creating 3 MTD partitions on "RouterBoot":
<
robimarko>
[ 1.041395] 0x0000000af000-0x0000000b0000 : "hard_config"
<
robimarko>
[ 1.047184] 0x0000000d0000-0x0000000d5a8f : "dtb_config"
<
robimarko>
[ 1.052803] 0x0000000c0000-0x0000000c1000 : "soft_config"
<
robimarko>
[ 1.058228] mtd: partition "soft_config" doesn't end on an erase/write block -- force read-only
<
robimarko>
Nothing overlaps
<
f00b4r0>
robimarko: it strikes me as odd that the partitions are listed in reverse address order
<
f00b4r0>
dtb and soft, that is
<
f00b4r0>
this may be why the overlap warning triggers
<
f00b4r0>
let me take a (very) quick look at my code ;)
<
robimarko>
Hm, I just copy/pasted my hAP ac3 DTS for the RB partitions
<
robimarko>
dtb_config is before soft_config there, let me reorder that
<
f00b4r0>
* This parser requires the DTS to list partitions in ascending order as
<
f00b4r0>
* expected on the MTD device.
<
f00b4r0>
there you go :)
<
f00b4r0>
NOTABUG ;)
<
robimarko>
So, I just had to read :)
<
f00b4r0>
i guess the parser could be made to be more flexible, at the expense of some performance though, and I'm too lazy :)
<
robimarko>
Ok,now its happy and doesnt complain about overlap
<
robimarko>
Though kernel is not happy with the DBT
<
robimarko>
[ 1.011940] mtd: partition "soft_config" doesn't end on an erase/write block -- force read-only
<
robimarko>
[ 1.020950] 0x0000000d0000-0x0000000d5a8f : "dtb_config"
<
f00b4r0>
the read-only warning shouldn't happen with the partial eb patch that we've been having for some time
<
f00b4r0>
unless it's not enabled on your target (likely)
<
robimarko>
4K read/writes?
<
robimarko>
Its been ages since I messed with this
<
robimarko>
Ahh, CONFIG_MTD_SPI_NOR_USE_VARIABLE_ERASE
<
robimarko>
And it works :)
<
robimarko>
Gotta rebase my U-Boot port for this so I can get rid of one of those adron ELF loaders
<
Znevna>
so there should be light for rb5009? :P
<
robimarko>
Cannot promise anything, MTik really made it hard with the stupid YAFFS
<
jow>
congratulations, you passed the annual utf8 check
goliath has joined #openwrt-devel
Edu4rdSHL has joined #openwrt-devel
nixuser has quit [Ping timeout: 480 seconds]
nixuser has joined #openwrt-devel
tidalf has joined #openwrt-devel
tidalf has joined #openwrt-devel
tidalf has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<
mrnuke>
damo22: yeah, I wrote a script to mess with them
Edu4rdSHL has quit [Quit: Leaving]
Edu4rdSHL has joined #openwrt-devel
goliath has quit [Quit: SIGSEGV]
tidalf has joined #openwrt-devel
tidalf has joined #openwrt-devel
tidalf has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
minimal has joined #openwrt-devel
tidalf has joined #openwrt-devel
bluew has quit [Quit: Leaving]
zer0def has quit [Quit: zer0def]
zer0def has joined #openwrt-devel
tidalf has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
goliath has joined #openwrt-devel
Mangix has quit [Read error: Connection reset by peer]
tidalf has joined #openwrt-devel
tidalf is now known as Guest8913
Guest8913 has quit [Remote host closed the connection]
mentalow has quit [Quit: :]]
mentalow has joined #openwrt-devel
Borromini has joined #openwrt-devel
Borromini has quit [Quit: Lost terminal]
jkl has quit [Remote host closed the connection]
jkl has joined #openwrt-devel
skynet2 has joined #openwrt-devel
Mangix has joined #openwrt-devel
Edu4rdSHL has quit [Quit: Leaving]
Edu4rdSHL has joined #openwrt-devel
skynet2 has quit [Quit: Leaving]
nixuser has quit [Ping timeout: 480 seconds]
<
damo22>
mrnuke: see private message