lanefu changed the topic of #armbian-rockchip to: Armbian - Linux for ARM development boards | Rockchip SoC | www.armbian.com | This channel is relayed to the equivalent Discord channel | this channel is logged
<DC-IRC> <Tenkawa> @wchill what kernel source are you using?
<DC-IRC> <Tenkawa> you defining HDMIRX as a module or staticly?
<DC-IRC> <wchill> module
<DC-IRC> <Tenkawa> I just checked my config and its compiling
<DC-IRC> <Tenkawa> (on my rk3588's)
<DC-IRC> <wchill> it compiles all right, it's just when it gets to the end
<DC-IRC> <Tenkawa> I use rockchip's repo though
<DC-IRC> <Tenkawa> if its at the end that usually means you have depends set wrong
<DC-IRC> <wchill> lemme take a look
<DC-IRC> <wchill> talking about the kconfig?
<DC-IRC> <Tenkawa> some of them need to be explicitly set to yes even though they don't force it
<DC-IRC> <Tenkawa> (I've run into this before)
<DC-IRC> <RichN> are you compiling for the pi6 or the nanopct6
<DC-IRC> <Tenkawa> (I've had the alternate problem occur too)...
<DC-IRC> <wchill> yeah for hdmirx someone added `ROCKCHIP_SIP` as a dependency in the armbian kernel sources, not sure if it mattered though because I already had that option set to yes
<DC-IRC> <wchill> nanopc t6
<DC-IRC> <RichN> what kernel src
<DC-IRC> <RichN> and where is the devicetree
<DC-IRC> <wchill> linked above, devicetree I dumped from my currently running image
<DC-IRC> <Tenkawa> @RichN this has nothing to do with the device tree for compiling a kernel
<DC-IRC> <wchill> yeah I only need the one driver
<DC-IRC> <RichN> are you going for 5.15 or 6.x
<DC-IRC> <wchill> whatever 5.10 abomination rockchip uses
<DC-IRC> <wchill> friendlyelec's build scripts are broken so I'm just keeping things stock for the moment
<DC-IRC> <wchill> don't need more complications
<DC-IRC> <RichN> thats showing for the nanopi5
<DC-IRC> <RichN> not even the nanopct6
<DC-IRC> <RichN> I am talking to bing now
<DC-IRC> <wchill> they use those sources for the pi6 as well
<DC-IRC> <wchill> the device tree for t6 isn't in there though
<DC-IRC> <RichN> because they have not had a chance to finish and puch it up
<DC-IRC> <RichN> there is alot going on and and its a cluster at the min
<DC-IRC> <RichN> bing is working on things as fast as he can
<DC-IRC> <wchill> that's fine, as mentioned I don't actually need the device tree. was just wondering if anyone had any ideas on why building the driver is failing
<DC-IRC> <RichN> you might have missing deps
<DC-IRC> <RichN> can you send me the devie tree your using ? did it come off the prebuilt img
<DC-IRC> <RichN> bing says they have not put the devicetree files out
<DC-IRC> <RichN> or the kernel src because they are still working to get thigns working like the wlan pci-e socket
<DC-IRC> <wchill> one sec
<DC-IRC> <RichN> wchill can you post the devicetree file
<DC-IRC> <wchill> I grabbed it from /proc/config.gz
<DC-IRC> <c0rnelius> obviously
<DC-IRC> <RichN> tony and I are waiting for our units
<DC-IRC> <RichN> this is going to be a uphill battle ok
<DC-IRC> <jkent> SPI1 CSn0 asserted while talking to second slave
<DC-IRC> <wchill> I think I found the issue, friendlyelec's kernel doesn't have this patch https://github.com/armbian/linux-rockchip/commit/b1c4d89ee395e188a7288bdc8ec50e2c3acbed0d
<DC-IRC> <RichN> wchill it wont have a lot of things
<DC-IRC> <RichN> and its going to take time to get it ported upstream
<DC-IRC> <RichN> its a new board
<DC-IRC> <rpardini> I sincerely don't know, I did the kernel blind, I've not the board. It's @NicoD and @monkaBlyat trying out the stuff.... welp?
<DC-IRC> <rpardini> if it's giving headache just drop it, we'll test and report back
<DC-IRC> <amazingfate> It will output some error in kernel log because there is no gpio configed in the dts of rock5b.
<DC-IRC> <amazingfate> But the audio is still working.
<DC-IRC> <rpardini> Yeah looks to me Khadas has a gpio for detecting if a plug is actually inserted in the audio port, but then they hack the driver and just assume the pin is declared in the DT.
<DC-IRC> <amazingfate> For headset detect there is rk_headset working on rock5b.
<DC-IRC> <rpardini> Yeah, drop the Khadas stuff I'd say.
<DC-IRC> <rpardini> the guys will test and if breaks somehow we'll revisit later
<DC-IRC> <NicoD> I've been using the Rock5B yesterday and hdmi audio wasn't working. It first worked, but I guess after a update it stopped working. Might also be my fault, I was testing lots of things. Also managed to brake hdmi audio on R58 mini but not sure why and how. Didn't update to my knowledge.
<DC-IRC> <NicoD> Also my SSD stopped working on R58 mini. In short, it wasn't a good computing day for me yesterday. I'll have to re-install Armbian on the R58. Was working great for months.
<DC-IRC> <NicoD> Now making a video about Khadas Edge2 peripherals. IO board, case, station and camera.
<DC-IRC> <rpardini> Oh btw @NicoD and @Tenkawa did you manage to get debug UART on kedge2 + IO board? 😄 I'd love some bootlogs
<DC-IRC> <rpardini> question for kedge2 is, _should Armbian ship u-boot? (if so, which?)_ -- or instead rely on whatever Khadas has in the SPI...
<DC-IRC> <rpardini> consider most users _won't_ have the I/O board (thus no SD card), and I think most users won't wipe their SPI... ?
<DC-IRC> <Tenkawa> @rpardini I have one but I has of yet not got it to be useable.. none of the various settings (the high speed or the normal 115200 neither work.. they both output as scrambled characters here)
<DC-IRC> <Tenkawa> tried different flow/hardware-software/rts-cts combinatioms/etc
<DC-IRC> <Tenkawa> tried different flow/hardware-software/rts-cts combinations/etc
<DC-IRC> <Tenkawa> I know they are talking because it "does" output.... just nothing readable
<DC-IRC> <Tenkawa> It is possible it doesn't like my uart itself however if so that's going to be problematic for people to figure out... this one works perfectly on the Rock5 RK3588 I have sitting right beside it connected to a RISC-V and another Rock5
<DC-IRC> <Tenkawa> so I defer to @NicoD heheh
<DC-IRC> <RichN> riscv is dead
* DC-IRC <RichN> ducks
<DC-IRC> <RichN> lol
<DC-IRC> <RichN> jk
<DC-IRC> <NicoD> Not gotten UART to work on it either. I don't get any output at all. Tried different adapters for it, but nothing. Is uart automatically enabled on it? I did read on khadas wiki that you have to enable it manually for their image.
<DC-IRC> <NicoD> Not impressed by the case either. Can't make it fit with wifi+bt antenna's. So either use the case and station with slow ethernet, or use wifi and bt.
<DC-IRC> <RichN> what board ?
<DC-IRC> <RichN> and what uart chip
<DC-IRC> <RichN> ch340 work great on all boards
<DC-IRC> <RichN> are you sure you have it wired right for the board
<DC-IRC> <RichN> and is there a separate uart header or you using the 3 pins on the 40 pin header
<DC-IRC> <Tenkawa> @NicoD uart just needs for enabling console=ttyFIQ0 on bootline and a systemd/getty startup here
<DC-IRC> <Tenkawa> @RichN there is no 40 pin header on the edge2
<DC-IRC> <RichN> you using putty or a serial termina
<DC-IRC> <NicoD> both.
<DC-IRC> <NicoD> And I'm pretty sure I connected the cables correctly.
<DC-IRC> <RichN> ok and did you swap the rx/tx lines
<DC-IRC> <RichN> what uart are you useing
<DC-IRC> <NicoD> Yes.
<DC-IRC> <NicoD> Used the FriendlyElec uart and one I got from Igor.
<DC-IRC> <RichN> ch340 ?
<DC-IRC> <RichN> I never seen the brakout board like that
<DC-IRC> <RichN> have you tried with out the breakout board
<DC-IRC> <NicoD> No uart without breakout board.
<DC-IRC> <Tenkawa> @RichN We have told you.. this is recreatable on several units/cables..
<DC-IRC> <Tenkawa> please pay attention
<DC-IRC> <NicoD> Not sure what uart chip this uses. On the board is written CP2102.
<DC-IRC> <Werner> CP2102 cannot handle 1.5mbaud AFAIK. The cp2104 is better. Good enough for 115200 baud boards though
<DC-IRC> <NicoD> That I don't know. So @Igor gave me crap 😆
<DC-IRC> <Tenkawa> @werner the remaining RK3588 boards I have (2 others) work fine with these
<DC-IRC> <Tenkawa> same speed...
<DC-IRC> <Tenkawa> Likely its something in the way its "handled"
<DC-IRC> <Tenkawa> I am going to switch another few settings and try again
<DC-IRC> <Tenkawa> my other RK3588's define their settings... I'm about to force the Khadas to
<DC-IRC> <RichN> cp2102/2109 uart speed300, 600, 1200, 1800, 2400, 4000, 4800, 7200, 9600, 14400, 16000, 19200, 28800, 38400,
<DC-IRC> <RichN> 51200, 56000, 57600, 64000, 76800, 115200, 128000, 153600, 230400, 250000, 256000,
<DC-IRC> <RichN> 460800, 500000, 576000, 921600/3
<DC-IRC> <Tenkawa> not just let it assume
<DC-IRC> <NicoD> I wonder if UART can work on the station with USB-C.
<DC-IRC> <NicoD> `Features:
<DC-IRC> <NicoD> 10/100M Ethernet Port
<DC-IRC> <NicoD> 3.5mm Headphone Jack
<DC-IRC> <NicoD> UART (CP2104, USB-C Port)
<DC-IRC> <NicoD> ALC4032-CG DAC`
<DC-IRC> <Tenkawa> @NicoD yeah the getty settings aren't high enough on here
<DC-IRC> <Tenkawa> root 662 0.0 0.0 5728 1756 ttyFIQ0 Ss+ May12 0:00 /sbin/agetty -o -p -- \u --keep-baud 115200,57600,38400,9600 ttyFIQ0 vt220
<DC-IRC> <Tenkawa> changing them now
<DC-IRC> <Tenkawa> that's too low for this sbc
<DC-IRC> <rpardini> cool, but what I'd like are the BLxx logs and the u-boot logs... those should spew at 1500000
<DC-IRC> <Tenkawa> ok got it updated.. going to hook up the cable and test
<DC-IRC> <rpardini> the getty's I couldn't care less 😉
<DC-IRC> <Tenkawa> yeah I cant see them unless I get this working
<DC-IRC> <Tenkawa> I dont have a display
<DC-IRC> <rpardini> yeah, they don't show up on display, only on UART.
<DC-IRC> <Tenkawa> exactly.. so the "getty" on the remote side has to work
<DC-IRC> <Tenkawa> er on it
<DC-IRC> <rpardini> getty is userspace, thus much after u-boot.
<DC-IRC> <Tenkawa> no.. it uses half/half
<DC-IRC> <Tenkawa> parts before and after
<DC-IRC> <rpardini> if you say so ¯\_(ツ)_/¯
<DC-IRC> <Tenkawa> you would stop at "Starting boot"
<DC-IRC> <Tenkawa> If that's all you want ...
<DC-IRC> <rpardini> yeah BLxx and u-boot and maybe a few lines of the kernel boot
<DC-IRC> <rpardini> userspace not important.
<DC-IRC> <Tenkawa> Let me wire it up
<DC-IRC> <rpardini> thanks 👍
<DC-IRC> <Tenkawa> Ok let see if this works
<DC-IRC> <Tenkawa> still junk... yet the RK3588 is working perfect
<DC-IRC> <Tenkawa> 2 serial cables... the Khadas RK3588s no go.. the Rock5 3588 no problem
<DC-IRC> <Tenkawa> I wonder if u-boot is unhappy
<DC-IRC> <RichN> my T^ will be here tuesday I can not wait
<DC-IRC> <RichN> t6
<DC-IRC> <NicoD> I'm finishing my video, I'll try the Station with USB-C cable, it is mentioned it should do uart. Doesn't say it can be used as normal USB, only UART and power.
<DC-IRC> <NicoD> I want a T6.
<DC-IRC> <NicoD> My R6C broke and had to send it back to debut it. If they ask to send another I'll ask for the T6 instead.
<DC-IRC> <Tenkawa> one of the things that "concerns" me is the earlycons stanza in this boot
<DC-IRC> <RichN> the first run sold out so fats on the 16 64/256 units
<DC-IRC> <RichN> fats /fast
<DC-IRC> <rpardini> @Tenkawa damn. Did you try 115200 as well as 1500000? Maybe Khadas is making fun of us?
<DC-IRC> <Tenkawa> yeah I just did
<DC-IRC> <Tenkawa> it was worse
<DC-IRC> <Tenkawa> earlycon=uart8250,mmio32,0xfeb50000 is in that unit and not in the other 3588's
<DC-IRC> <Tenkawa> its a bit... concerning
<DC-IRC> <NicoD> My R6C broke and had to send it back to debug it. If they ask to send another I'll ask for the T6 instead.
<DC-IRC> <rpardini> that's kernel, thus, after BLxx and u-boot
<DC-IRC> <Tenkawa> ok good
<DC-IRC> <Tenkawa> Yeah I am highly concerned his might be u-boot
<DC-IRC> <Tenkawa> these are vendor blobs still
<DC-IRC> <rpardini> yeah, and unless you somehow wiped via rkdevtool, the SPI should be booting blobs and u-boot.
<DC-IRC> <Tenkawa> yeah its spi
<DC-IRC> <rpardini> Khadas documents says explicitly 1500000 https://docs.khadas.com/products/sbc/edge2/development/setup-serial-tool
<DC-IRC> <Tenkawa> c0rnelius and I built this to run from spi so all media types where avil
<DC-IRC> <Tenkawa> c0rnelius and I built this to run from spi so all media types where avail
<DC-IRC> <rpardini> no, they say 1500000 at one point and 115200 at another, but I guess that's a copypasta in the docs
<DC-IRC> <Tenkawa> c0rnelius and I built this to run from spi so all media types were avail
<DC-IRC> <rpardini> wait, did you flash into the SPI NOR?
<DC-IRC> <Tenkawa> Not sure if we overwrote OOWOW or not actually...
<DC-IRC> <Tenkawa> (I'd have to plug it in to video to tell you for sure)
<DC-IRC> <rpardini> oh. if so, don't bother, I am looking for factory SPI logs.... since that's what most users will have
<DC-IRC> <Tenkawa> I have yet to this day "seen" OOWOW...never needed it..
<DC-IRC> <rpardini> (and, whatever you flashed to SPI, it's probably more sane than factory)
<DC-IRC> <Tenkawa> we built it on microsd then copied it to emmc
<DC-IRC> <Tenkawa> er usb to emmc
<DC-IRC> <Tenkawa> or one of the 2
<DC-IRC> <Tenkawa> you know what I mean
<DC-IRC> <Tenkawa> (since I have the addon connector)
<DC-IRC> <rpardini> yeah, but SPI boots first.
<DC-IRC> <Tenkawa> but isn't it just a bootloader like Petitboot is for Odroid essemtially?
<DC-IRC> <rpardini> factory SPI should have blobs, uboot (that goes first for SD/eMMC), and oowow, which is booted if you hold magic buttons combo.
<DC-IRC> <Tenkawa> but isn't it just a bootloader like Petitboot is for Odroid essentially?
<DC-IRC> <Tenkawa> If so then yes we overwrote it I'm fairly sure
<DC-IRC> <rpardini> yeah somewhat similar to petitboot, but their u-boot looks for and boots bootscript or extlinux on SD/eMMC first I think
<DC-IRC> <Tenkawa> Wanted to change the boot order
<DC-IRC> <Tenkawa> Yeah we wanted to make sure it was microsd/usb/emmc
<DC-IRC> <Tenkawa> for recovery purposes
<DC-IRC> <rpardini> yeah relax. I was trying to push this kedge2 board into 23.05 release, but no game.
<DC-IRC> <rpardini> guess we'll live with Oleg's
<DC-IRC> <rpardini> I should get a kedge2 and i/o board "one day" 😉
<DC-IRC> <Tenkawa> Its nice... amazingfate and monka have the "gaming" distro going well I hear
<DC-IRC> <Tenkawa> (more mods than distro... )
<DC-IRC> <rpardini> yeah but those live on my fork... I'd like to push to real Armbian....
<DC-IRC> <rpardini> but would need logs to sort out some problem with bootscript vs extlinux
<DC-IRC> <c0rnelius> extlinux for life
<DC-IRC> <c0rnelius> unless it doesn't work and then yeah whatever dumb junk i'm forced to use.
<DC-IRC> <rpardini> yeah, old story: Armbian's overlays and armbian-config etc rely on bootscript/armbianEnv.txt
<DC-IRC> <c0rnelius> one thing that is diff about the kedge2 is it doesn't require a GPT setup. Which is convenient.
<DC-IRC> <rpardini> it works with extlinux.
<DC-IRC> <rpardini> I guess that's cos u-boot is in SPI...?
<DC-IRC> <c0rnelius> extlinux can use overlays
<DC-IRC> <rpardini> yeah, it's armbian-config that can't.
<DC-IRC> <c0rnelius> yeah I suppose that could be the reason? or just the khadas devs know how to engineer a product.
<DC-IRC> <rpardini> also, armbian's overlays use "fixups" so bootscript are required...
<DC-IRC> <rpardini> _one day_ we shall replace all that junk.
<DC-IRC> <c0rnelius> i actually saw a u-boot post about this a few days ago and armbian was mentioned because you guys love bootscripts.
<DC-IRC> <c0rnelius> `select BOOTMETH_SCRIPT # E.g. Armbian uses scripts`
<DC-IRC> <lanefu> Americans and their BootMeth
<DC-IRC> <c0rnelius> In FL they prefer Crystal. BootMeth is more of a West Virginia and surrounding area thing.
<DC-IRC> <patrickdk> hey, I resemble that crystal
<DC-IRC> <c0rnelius> you look like it? what?
<DC-IRC> <patrickdk> in FL
<DC-IRC> <lanefu> FloridaMan boots BSP kernel
<DC-IRC> <c0rnelius> FL Man ca't boot.
<DC-IRC> <c0rnelius> FL Man can't boot.
<DC-IRC> <c0rnelius> Life is tough when you gotta battle alligators and random shoppers at Walmart on a daily.
<DC-IRC> <patrickdk> likely why no one ever shows up ontime, contractors always a few weeks late
<DC-IRC> <c0rnelius> You know its tough when the USPS is more reliable than UPS and FedEx. Welcome to FL!
<DC-IRC> <patrickdk> what? usps only started delivering my mail like a month ago
<DC-IRC> <patrickdk> it's been missing for 3 years
<DC-IRC> <patrickdk> usps postal worker would only stop it off 2-3 times a week, and most of the time the mail would take 5 weeks
<DC-IRC> <c0rnelius> Do u live in the Glades or something?
<DC-IRC> <patrickdk> ocala
<DC-IRC> <patrickdk> in town
<DC-IRC> <c0rnelius> isn't that a main USPS hub?
<DC-IRC> <patrickdk> it used to be, now all mail comes via jacksonville
<DC-IRC> <patrickdk> I mail a letter next door, it goes to jacksonville and back
<DC-IRC> <patrickdk> and takes 5 weeks
<DC-IRC> <patrickdk> nothing like my bills arriving after the due dates
<DC-IRC> <c0rnelius> You need to make friends with ur mail peps. When I lived in Baltimore they had my digits. If its important just call me.