ChanServ changed the topic of #linux-sunxi to: Allwinner/sunxi development - Did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait for an answer! - This channel is logged at https://oftc.irclog.whitequark.org/linux-sunxi
vagrantc has quit [Quit: leaving]
paulk-bis has quit [Ping timeout: 480 seconds]
cnxsoft has joined #linux-sunxi
ftg has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
chewitt has joined #linux-sunxi
vpeter has quit [Remote host closed the connection]
vpeter has joined #linux-sunxi
paulk-bis has joined #linux-sunxi
chewitt has quit [Ping timeout: 480 seconds]
paulk-bis has quit [Ping timeout: 480 seconds]
paulk-bis has joined #linux-sunxi
ftg has joined #linux-sunxi
paulk-bis has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit [Remote host closed the connection]
JohnDoe_71Rus has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit []
JohnDoe_71Rus has joined #linux-sunxi
cnxsoft has quit []
ftg has quit [Ping timeout: 480 seconds]
Voidb3rg has joined #linux-sunxi
Voidb3rg has quit []
Voidb3rg has joined #linux-sunxi
<Voidb3rg> I have a an arcade machine running an a40i (R40), I'm trying to dump the 256mb NAND (TC58NVG1S3HTA00). I think I'm close... but I'm stuck. The board is defeatured with no MMC/SD/SPI/Wifi/BT. UART is disabled by default and pin glitching gets me no output either. I did manage to get FEL mode working though but no hardware is detected.
<Voidb3rg> UART is working over FEL with mainline uboot from a BPI M2 Ultra defconfig, but it won't pickup the NAND no matter what settings I use. I've spent days trying to boot from RAM using various linux distros (including BSP) with zImages/uImages/Busybox/uEnv... but I get a kernal panic, can't find rootfs, unable to init, or other issues depending on the distro I compile with.
<Voidb3rg> There are some other intresting jumpers on the board, I put headers on them but I can't figure out what they do exactly ( SM0, RES, RESET ). There is a USB1 that I soldered a header onto, and mainline over FEL detects the controller, but always shows 0 mass storage devices found. Multimeter shows the VCC is 0v at all times for the USB so maybe they cut the trace.
<Voidb3rg> Any tips or ideas from anyone would be appreciated. I've hit a mental roadblock at this point. Here is a screenshot of the PCB with my notes - https://i.imgur.com/Y7dpwLH.jpeg
<Voidb3rg> I have a buspirate but I can't find any other protocols besides UART. All of the SOP8 chips are either audio or voltage regulators.
<machinehum> No JTAG?
<Voidb3rg> I can't seem to find any jtag sadly, but I could be wrong. The board is very defeatured
<machinehum> This seems hard
<machinehum> UART doesn't work at all?
<machinehum> I guess you said that
<Voidb3rg> It works in FEL mode if I do a sunxi-fel uboot
<machinehum> hmm
<DuClare> Not exactly my area of expertise, but if you got a kernel booting as far as looking for rootfs.. that's a strong contender for exploring from the linux side, just boot an initramfs instead of trying to mount a rootfs
<Voidb3rg> Output from my mainline boot over FEL https://pastebin.com/xGU7vJQS. I was thinking of doing a USB Boot but it never will find my "Storage Device". Multimeter shows no VCC. Externally powered hub won't work either.
<Voidb3rg> I tried to make a initramfs but I always get "Unable to init" or "unable to find rootfs". Its new to me so I tried creating my own a few different ways and tried other peoples as well. I can't ever seem to reach a console but I agree it's probably the only way.
<Voidb3rg> I tried BSP linux with a busybox rootfs. Marked the various options to include the rootfs in the zImage. I get the kernel to boot but it never finds the filesystem. Other hacks like this always include a script.bin file but I don't have one since no dump has been made for this board yet.
bauen1 has joined #linux-sunxi
apritzel has joined #linux-sunxi
<jernej> Voidb3rg: NAND is not really supported on mainline and even if it would be, wear leveling algorithm would be different, so it wouldn't help you much anyway
ftg has joined #linux-sunxi
<Voidb3rg> Is it possible to boot BSP uboot over FEL? I couldn't figure out a way to do it without having a dump of the firmware first
<jernej> I'm not sure
<jernej> probably not without changes
<jernej> apritzel might know
<jernej> Voidb3rg: I suspect AXP221S (PMIC) is not configured correctly (or at all), so you don't get power on USB VBUS
<Voidb3rg> Should I just keep messing with values in the menuconf until I can get it powered? I'm not sure if there is a method to test it inside of uboot. I enabled PMIC control but it shows on devices detected
Hypfer has quit [Quit: The Lounge - https://thelounge.github.io]
Hypfer has joined #linux-sunxi
JohnDoe_71Rus has quit []
evgeny_boger has joined #linux-sunxi
evgeny_boger has quit [Ping timeout: 480 seconds]
Voidb3rg has quit [Quit: Leaving]
vagrantc has joined #linux-sunxi
ftg has quit [Ping timeout: 480 seconds]
ftg has joined #linux-sunxi
evgeny_boger has joined #linux-sunxi
<apritzel> Voidb3rg: jernej: you can upload and execute the boot0 part over FEL, but this will then hang (when it tries to load more)
<apritzel> AFAIK the BSP only supports one boot source for a certain firmware image (in contrast to mainline)
<apritzel> so if you extract something meant for NAND booting, you can't boot that image via FEL or MMC
<apritzel> as jernej already said, NAND is a major roadblock, just alone for the read disturbance
<apritzel> so unless you are willing to invest a lot of time in reading (hard to find) documentation and do some experimentation, I would leave the NAND alone
<apritzel> Voidb3rg: you can choose any 5V source for the USB VCC, doesn't need to come from some of the USB pins
<apritzel> so my advice would be to boot from FEL into mainline U-Boot, then use USB for loading the kernel and also have the rootfs on USB