narmstrong changed the topic of #linux-amlogic to: Amlogic mainline kernel development discussion - our wiki http://linux-meson.com/ - ml linux-amlogic@lists.infradead.org - official channel moved from Freenode - publicly logged on https://libera.irclog.whitequark.org/linux-amlogic
vagrantc has quit [Quit: leaving]
naoki has joined #linux-amlogic
<chewitt> f_ go look at the cnx reviews for the wetek boards or Google images for board pics
<chewitt> those will show the chips used
<chewitt> rinse/repeat for other 'name' boards
<chewitt> sbc vendors also have pics on their wiki/websites normally
<chewitt> schematics will show what someone proposed, pics will show what was actually used
buzzmarshall has quit [Quit: Konversation terminated!]
<HackerKkillinghi> hey f_
<HackerKkillinghi> take a pic of the soc in the kii pro
jacobk has joined #linux-amlogic
chewitt has quit [Quit: Zzz..]
ldevulder has joined #linux-amlogic
chewitt has joined #linux-amlogic
jacobk has quit [Ping timeout: 248 seconds]
JohnnyonFlame has quit [Read error: Connection reset by peer]
f_ has joined #linux-amlogic
<f_> hi
<f_> Checking logs.
<f_> <HackerKkillinghi> take a pic of the soc in the kii pro
<f_> Not now.
<f_> I documented what I found
<f_> So far,
<f_> I can't find good pictures of the Play 2, the Hub, and the P20x boards.
<chewitt> nobody has the p20x boards except Baylibre and some long-forgotten other integrators (in a drawer somewhere)
<chewitt> they aren't generally available products to purchase
<HackerKkillinghi> so did narmstrong has one
<f_> Ok
<f_> chewitt: What about the WeTek Play 2 and WeTek Hub?
<f_> The RAM chips are hidden.
<f_> They're hidden by the heatsink.
<f_> chewitt: Do you have one?
<chewitt> Yes, I have both
<f_> Nice.
<chewitt> I'm not planning to open them anytime soon
<f_> Ok.
<chewitt> WP2 is a bitch to open. Hub is a bitch to close again.
<f_> I did discover that the WeTek Core has the same RAM chips.
<f_> But it uses a different SoC, and there are no FIPs for it.
<chewitt> WP2 schematics claim it has the same RAM chips as your box
<chewitt> but whether that's true is another thing..
<f_> Hmm
<f_> Might be true after all.
<f_> I did discover some low-quality pics and saw that the RAM chips are made by the same manufacturer.
<chewitt> if you have a ROM image that can be flashed via Amlogic Burning Tool; erase emmc and see if you can boot the LE image for WP2
<chewitt> it might not 100% boot, but with a uart attached to the board you can see early boot
<chewitt> as long as it boots u-boot, the rest is just packaging
<f_> The big question now -- where's the UART?
<HackerKkillinghi> hey
<HackerKkillinghi> f_
<chewitt> normally 3-4 pins on the board marked gnd/tx/rx
<HackerKkillinghi> check dm
<HackerKkillinghi> let help me u to replace the uboot
<f_> There are 3 pins labeled TX, RX, and GND......but there are 4 more pins labeled TX, RX, GND, and 5V..
<chewitt> some boards omit the actual pins to save pennies, but the pads might be there
<f_> HackerKkillinghi: I'd like to do that here, not in DMs.
<HackerKkillinghi> ok
<chewitt> you don't need to connect the +5v pin
<f_> Yes I know.
<chewitt> so try connecting .. one of the two sets of pins are probably working
<HackerKkillinghi> yeah
<HackerKkillinghi> tbh pm os should has actess to to the internetl stonge
<chewitt> as long as you're not trying to feed +5v to something you aren't going to break something
<f_> I'd need to solder the wires though, and my soldering skills are......well
<HackerKkillinghi> so we can wipe the stock uboot frpm emmc
<f_> There's room for improvement..
<HackerKkillinghi> in pm os
<f_> HackerKkillinghi: Let's not do that.
<HackerKkillinghi> let replace it with stock uboot
<HackerKkillinghi> in pm os
<f_> We need to figure out where the FIPs are.
<f_> HackerKkillinghi: ?
<HackerKkillinghi> * mainline uboot
<f_> Not now.
<f_> As said before we need FIPs that are known to work, else we won't be able to replace it.
<HackerKkillinghi> x96 mini is using fip from jethub
<HackerKkillinghi> in pms
<f_> We need to do all that carefully, not blindly wipe the eMMC and sticking in a U-Boot that, chances are, doesn't work.
<HackerKkillinghi> ok
<f_> You probably were lucky with that, but I don't want to do it.
<chewitt> even if the RAM chips are the same, there's no guarantee one vendor used full-price A1 spec chips and some no-name vendor used low-bin parts that need different timing data
<HackerKkillinghi> yeah
<HackerKkillinghi> but we can try
<chewitt> it will *probably* work, but there's no 100% guarantee
<f_> Yes
<HackerKkillinghi> try it then
<f_> No(t yet)
<chewitt> and you don't try without assembling the tools/knowledge to recover from a mistake first
<f_> Yeah
<chewitt> and with older boards, there's a big lack of software/images these days
<HackerKkillinghi> ok then find the stock first
<f_> I do know for sure there's a KII Pro image laying somewhere.
<f_> And I know for sure there are custom ROMs for it.
<f_> 2
<chewitt> folks like minix/beelink who are making some of the better (or least-worst) boxes all deleted their S905 SDKs around 2018 to free up disk space
<f_> There's one that's just stock converted to Android TV, and another one that isn't worth trying (in my opinion).
<chewitt> ultimately you don't care how good/bad the image is; you only care that it boots the device and can be persuaded to boot Linux
<f_> Yup.
* f_ afk for a sec.
<f_> I'm back.
<f_> chewitt: So. How am I supposed to enter the flashing mode?
<chewitt> using what?
<f_> Enter the mode where you can use the USB burner/update to flash?
<f_> So I just plug in a USB-A to USB-A cable and pray, right?
<f_> rrrrright?
<chewitt> connect cables, setup the image, power box on
<f_> >power box on
<chewitt> hopefully it appears, if not try other usb ports on the box
<f_> ? it turns on automatically
<chewitt> I didn't do much with that tool .. I prob. didn't use it in several years
<f_> And I'm using a USB-A>USB-C cable + a USB-C>USB-A adapter.
<chewitt> I have zero interest in Android ROMs so no need
<f_> Is that ok?
<f_> It works with some other devices.
<chewitt> and the USB-C stuff always failed in vmware Fusion for me (am a macOS user)
<f_> Ok
<chewitt> so I mostly never bothered and found other ways to do things
<chewitt> all the boxes I have either remain on vendor u-boot deliberately or I have the FIPs and they're using upstream u-boot
<chewitt> I haven't needed or wanted to experiment for a while
<f_> Am a GNU+Linux user and I use QEMU.
gabes has quit [Quit: The Lounge - https://thelounge.chat]
gabes has joined #linux-amlogic
<f_> chewitt: Did `update` work though?
<chewitt> something else I never used, because it's all about Android ROMs and restoring images I never needed to use
<f_> Sure.
<chewitt> its a function of vendor u-boot so I would expect it to work; if fed with the right files
<f_> chewitt: https://forum.xda-developers.com/attachments/emmc-short-jpg.4377442/ I think I know which pins to short.
naoki has quit [Quit: naoki]
<f_> Wait a second..
<f_> chewitt: Is the USB burning tool also a feature of the vendor U-Boot?
<chewitt> the 'update' protocol is built into the SoC .. hence you can used it to flash a box that's fully erased
<chewitt> support is also present in vendor u-boot
<f_> Ah ok.
<f_> I'm now trying to find a firmware.
<f_> WeOS running on the KII Pro (?)
<f_> https://www.youtube.com/watch?v=9ymXW0Uzi6w this one has a download link..
<f_> But they use TWRP...
<chewitt> being able to read Russian comes in handy sometimes :)
<f_> I'm unable to do that lol
<f_> And both download links for the ROMs found on XDA-developers are dead.
<f_> Ok. Where am I supposed to find KII Pro stock ROMs lol
<f_> I have a dump, but as you said it won't be useful.
<f_> Can I use this to boot up a minimal environment suitable for `dd`ing to the eMMC?
<HackerKkillinghi> u already have a environment for dding to the emmc
<HackerKkillinghi> pm os
<f_> Yes but I mean.
<f_> If something goes wrong, I won't be able to boot to pmOS like I usually do.
<chewitt> I forget how to use pyamlboot, but I think it should be possible
<chewitt> @narmstrong is the author though
<HackerKkillinghi> i only know how to use boot-g12.py
<f_> I know, yes.
<f_> I FOUND AN IMAGE!!!!
<HackerKkillinghi> hey
<f_> I'll flash it to see if flashing works.
<f_> Booting up Windows 10.
<HackerKkillinghi> good
<f_> (on QEMU :S)
<f_> Takes a very looooooooooooooooooooooong time to boot up though.
<f_> FINALLY
<f_> Now installing that Amlogic spyware.
<HackerKkillinghi> u have usb prassthoght?
<HackerKkillinghi> * use
<f_> I used this VM before with my fingerprint reader, which is connected via USB, so yes.
<HackerKkillinghi> did u prassthught the usb controller the vm
<HackerKkillinghi> *to the
<f_> Not yet.
<f_> Will do it when the stb goes into flashing mode.
<f_> So slooooooooooooooow
<HackerKkillinghi> what
<f_> Microsoft Windows.
<HackerKkillinghi> i think u has something that win7
<HackerKkillinghi> *run
<HackerKkillinghi> win7 is faster
<f_> I know. Too lazy to setup a new VM.
<HackerKkillinghi> btw i used the update tool
<HackerKkillinghi> on linux
<f_> Ok.
<f_> Hey I'm still downloading.
<HackerKkillinghi> f_: tips : aria2c
<f_> What's aria2c?
<HackerKkillinghi> multiple thread dowloander
<f_> NO DOWNLOADER!
<f_> Windows is slow, that's it.
<f_> It's overall sluggish.
jacobk has joined #linux-amlogic
<f_> So. I installed the Amlogic USB Burner and downloaded a ROM for the KII Pro (not a stock ROM)
<f_> I took a dump of the eMMC's contents.
<f_> Let's flash!
<HackerKkillinghi> do it
<f_> Yes. I just said I'm going to flash.
elastic_1 has joined #linux-amlogic
elastic_dog has quit [Killed (tungsten.libera.chat (Nickname regained by services))]
<f_> My TV box is officially bricked!
<f_> :D
<HackerKkillinghi> what happenyed
<f_> Trying `update`/flash-tool.sh (from https://github.com/osmc/aml-flash-tool)
<f_> HackerKkillinghi: Windows being Windows.
<f_> No problem though.
<HackerKkillinghi> my xiaomi once is officially bricked!
<f_> How?
<f_> How did you brick it?
<f_> What happened?
<f_> Trying `flash-tool.sh`/`update`.
<f_> Oh well.
<f_> It actually didn't die(?)
<f_> lol
<f_> The firmware's still there.
<f_> So....trying again.
<f_> Ok.
<f_> `update` doesn't work.
<f_> Command -> /tmp/aml-flash-tool/tools/linux-x86/update 2>/dev/null write /tmp/aml-flash-tool-ggdF/UBOOT.USB 0x200c000
<f_> - Results --------------------------------------------------- usbWriteFile len=4096,ret=-110 error_msg=Connection timed out
<f_> ERR: write data to device failed
<f_> -------------------------------------------------------------
<f_> Timed out?
<f_> And the firmware got completly untouched..
<f_> As far as I know.
<f_> I'll figure that out later.
<f_> Maybe it's just a bad cable?
jacobk has quit [Ping timeout: 260 seconds]
vagrantc has joined #linux-amlogic
ldevulder has quit [Quit: Leaving]
f_ has quit [Quit: Lost terminal]
JohnnyonFlame has joined #linux-amlogic
JohnnyonF has joined #linux-amlogic
JohnnyonFlame has quit [Ping timeout: 255 seconds]
<HackerKkillinghi> did u figure that
<HackerKkillinghi> f_
zkrx has quit []
zkrx has joined #linux-amlogic
Daanct12 has joined #linux-amlogic
Danct12 has quit [Ping timeout: 255 seconds]
buzzmarshall has joined #linux-amlogic
vagrantc has quit [Quit: leaving]
elastic_dog has quit [Killed (zinc.libera.chat (Nickname regained by services))]
elastic_dog has joined #linux-amlogic
jacobk has joined #linux-amlogic
jacobk has quit [Ping timeout: 250 seconds]