valku has quit [Remote host closed the connection]
<mrnuke>
hurricos: pong v2
<mrnuke>
hurricos: I was asking if you'd be able to take a look at some realtek-poe PRs, and maybe merge the easy ones
<mrnuke>
hurricos: the RYL8288B needs a bit of love so that I can get the descriptors from 'static' to 'static const', althoug I an curious if the hybrid dialect mapping approach makes sense to you
<mrnuke>
of course, my message would make a lot more sense if I could spell "RTL8238B" properly :p
KGB-2 has quit [Remote host closed the connection]
dermoth has quit [Remote host closed the connection]
dermoth has joined #openwrt-devel
dermoth has quit [Remote host closed the connection]
dermoth has joined #openwrt-devel
zkrx has quit [Ping timeout: 480 seconds]
mschulz73 has joined #openwrt-devel
mschulz73 has quit []
zkrx has joined #openwrt-devel
zkrx_ has joined #openwrt-devel
zkrx is now known as Guest16925
zkrx_ is now known as zkrx
Guest16925 has quit [Ping timeout: 480 seconds]
<hurricos>
mrnuke: believe it or not, it made sense on its own, because I have been away long enough to remember concepts but not strings like that lmao. Which pr #? My GH inbox is full
<hurricos>
I am actually putting one PoE switch into lab prod again so testing is a quarter turn easier now
<Nick[m]>
schmars: you have to make the PR against master and than backport it with cherry-pick -x
<schmars[m]>
ah right, so first have it merged to master and then cherry-pick
ungeskriptet has quit [Ping timeout: 480 seconds]
ungeskriptet has joined #openwrt-devel
<dansan>
Hello. I'm booting an rk3568-based dev board from MYiR. I think it's pretty similar to the Rockchip RK3568 EVB. Anyway, it hgas a 16GiB mmc and I can't get first preinit / mount_root or whatever to use my /dev/mmcblk0p3 that I've formatted ext4, labled "rootfs_data", added to boot cmdline as "rootfs_data=PARTUUID=5452574f-03", etc.
<dansan>
If I make my rootfs partition /dev/mmcblk0p2 large enough for a loop with f2fs then it will put my overlay in ram. If make the rootfs just a bit larger than the squashfs (500kib or so) then it will put the f2fs in that space, but then I have to manually specify the overlay and reboot before it takes affect
<dansan>
I added https://bpa.st/6IAQ as my /etc/board.d/99_99-rootfs_data. I suppose I could just swap out the overlay there, but would rather do it right
<tmn505>
dansan: what are Your expectations of partition+filesystem layout? Because I think You're overcomplicating things.
<dansan>
tmn505: Hello! Yes, I believe I am. I only want to use /dev/mmcblk0p1 as my overlay. I'm reading more about preinit and the preinit_mount_root hook and it looks like that's where i need to be
<dansan>
I'm reading through the /lib/preinit scripts and it's starting to come together in my mind
<tmn505>
most (if not all) devices in OpenWrt using block devices to boot have 1st partiion with kernel+dtb+bootscript and 2nd partition used as rootfs (might be with overlay - more common or raw ext4 without overlay). You trying to put overlay on 1st partition is unusual and will probably require a lot of hackery.
<dansan>
oh no! I want it on the 3rd partition
<tmn505>
So what will be 1st and 2nd partitions used for?
<dansan>
Yes, I believe that's the layout, 1st partition is kernel + dbt and I presume also bootscript?
<dansan>
second is a partition that contains squashfs
<dansan>
Right now I've got a copy of gen_image_generic.sh that's slightlty modified, but will modify further once I get this simplified
<tmn505>
I see Your missconception. You don't need the 3rd dedicated partition for overlay. OpenWrt on first boot splits 2nd partition.
<dansan>
Right! And I was just about to say that the root problem is that that isn't happening when I leave a lot of room in the 2nd partition; I end up with tmpfs for an overlay. So probably addressing that bug is important
<dansan>
And I was wrong earlier, it's ext4 and not f2fs
<tmn505>
Do You have a git tree with Your code so I can look at it?
plappermaul has joined #openwrt-devel
<tmn505>
or a full patch
<dansan>
It's a big git tree, but some of it I can't post... Let me finish feeding my face real fast and I'll update my openwert fork
<dansan>
Also, my company's product files aren't fully separated from the dev board. I'm prototyping it on the dev board (plus hardware), but I'm under time pressures so getting a bit messy
<dansan>
now that I look at those commits, I have a lot of patches I need to submit
<tmn505>
After looking at the commits very briefly You're not doing much out of the ordinary. So maybe there's really a bug with large squashfs+f2fs. BTW keep in mind that when rootfs is split on first boot the formating (with f2fs) of overlay may take long time. Anyway, to test with large ext4 overlay patch this file:
<tmn505>
line 22 defines if below 100MiB overlay is formated with ext4, above that, f2fs is used.
<tmn505>
Also remember to use gen_image_squash_ext4.sh
<tmn505>
sorry should be gen_image_generic.sh script
<dansan>
ah hah! then perhaps I don't have f2fs driver. I'll check
<dansan>
hrn, it's in my kernel
<dansan>
ah but no f2fs programs. So it probably tried to make that and failed
<dansan>
Thank you tmn505!! You've been very helpful!
<dansan>
imo, if it fails to create an f2fs file system, it should have some fallbacks
<tmn505>
YW. The mkf2fs are enabled by default on rockchip target maybe You've disabled it later in in Your .config. The fallback is creating overlay in tmpfs
<dansan>
Probably so
<dansan>
Oh yeah, what I was getting -- tempfs
<dansan>
However, I think I might want to keep my overlay in a separate partition and leave p2 with room enough that I can flash upgrades to it and keep my existing overlay. Not 100% certain yet, but this thing has 16GiB of mmc
<tmn505>
On most targets sysupgrade doesn't touch 3rd partition if partition layout/size of 1st and 2nd didn't change. So it can be used as storage without issues
fakuivan has quit [Remote host closed the connection]
fakuivan has joined #openwrt-devel
<tmn505>
I think rockchip also implements that, so test it out
<tmn505>
Yeah, it does check platform_check_image in target/linux/rockchip/armv8/base-files/lib/upgrade/platform.sh
<dansan>
cool, thanks!
guidosarducci has quit [Remote host closed the connection]
<dansan>
hrm, can I pop a /bin/ash -l in a preinit script (maybe after 50) and get an interactive shell on the serial console?
danitool has joined #openwrt-devel
goliath has quit [Quit: SIGSEGV]
<dansan>
woo hoo! I got a preinit shell to poke around and explore! :)
<Habbie>
yay!
<dansan>
only I should have dumped the env first, because I can't see the state of the hooks, but that's ok. I ran run mount_root and try to figure out why it's not using my rootfs_data
<dansan>
oh, too bad I didn't put a debug version on so I could debug it. I started working on an interactive boot framework a few years ago, but I got interruped by life
ungeskriptet_ has joined #openwrt-devel
ungeskriptet has quit [Ping timeout: 480 seconds]
minimal has quit [Quit: Leaving]
danitool has quit [Quit: Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos]