* f00b4r0
eventually notices that his "stuck in reboot" WDRs have Zentel RAM, while the "happily rebooting like a charm" ones have Winbond RAM modules. Thinks he may be onto something
autkin has joined #openwrt-devel
lmahmutov has joined #openwrt-devel
<lmahmutov>
hi2all
<lmahmutov>
Working with target ipq807x Yuncore ax880. Builded openwrt 22 from @robimarko git all works fine. Then builded new openwrt 23 from master and added PR. And have problem. Rootfs not found.
<lmahmutov>
after reserarch i found issue. On openwrt 22 ubiattach after mounting show 3 volume , on openwrt 23 show 4 volume
<lmahmutov>
PaulFertser: by default on nand 2 partition rootfs and rootfs_1
<PaulFertser>
lmahmutov: ok that explains it.
<lmahmutov>
but on bootargs setted rootfs as root partition
<lmahmutov>
maybe its real bug and ubi attached rootfs_1 not rootfs.....
<PaulFertser>
lmahmutov: you have different partitions on NAND, in one case mtd0 is 0x000003c00000-0x000007000000 and in another case mtd0 is 0x000000000000-0x000003400000
<PaulFertser>
So that's indeed different NAND contents. Single NAND IC having two different ubi containers.
<PaulFertser>
lmahmutov: but you know what's really wrong about this story?
<PaulFertser>
lmahmutov: in your DT you should be using name "ubi" for the ubi container that stores OpenWrt. Do not use "rootfs" please, as OpenWrt treats this name in a special way.
<lmahmutov>
PaulFertser: openwrt 22 it is not my work ((((
<lmahmutov>
on 23 i fix thix problem , i now about it
<PaulFertser>
lmahmutov: why do you care about 22 at all? The support needs to be based on master and submitted upstream. Then when accepted in master it can be backported to the latest release.
Daanct12 has quit [Quit: WeeChat 4.1.2]
<lmahmutov>
PaulFertser: i'm not interested on 22 ) i need to understand current problem. Current problem i cannot upgrade from 22 to 23, with vole issue
<PaulFertser>
lmahmutov: I think you first need to fix the name for the partition (set it to "ubi") and use fixed partition table in DT. Then you just run the initramfs image, attach the right ubi, delete all the volumes and let sysupgrade create them as needed.
<lmahmutov>
it's easy way.... but i need upgrade working device ...
<PaulFertser>
save the configs before upgrading
<PaulFertser>
Or do you need to do it all remotely or what?
<lmahmutov>
all remotely(
<PaulFertser>
lmahmutov: I see you're using manual ubiattach command so instead of ubiattach -m0 use ubiattach -m2
<lmahmutov>
i dont have local acces
<lmahmutov>
PaulFertser: yes i think real problem is on wrong partition
<PaulFertser>
lmahmutov: just mtd0 and mtd2 swapped depending on what way of partitioning is used, fixed from DT or qcosthing.
<PaulFertser>
So you can mount the partition no problem.
<lmahmutov>
i have only one solution, as i understand. remove secondary partition from dt on openwrt 23 )
<lmahmutov>
but it's very strange, openwrt 22 load partitions from smem, openwrt 23 only from dr
<lmahmutov>
dt*
\x has quit [Ping timeout: 480 seconds]
<PaulFertser>
lmahmutov: probably you compile without support for that qcomsmem.
<lmahmutov>
PaulFertser: i dont change kernel config, it's from openwrt 23.05 original