<apritzel>
I see, /sys/class/sunxi_dump ... what are those guys smoking?
<jernej>
why? wouldn't you say it's useful for development purposes? :D
Throwawayname has joined #linux-sunxi
Throwawayname has quit [Max SendQ exceeded]
willmore has quit [Remote host closed the connection]
JohnDoe_71Rus has quit [Quit: KVIrc KVIrc Aria 5.0.1, revision: 5.0.1+git-7433-0df9f22f2, build type: debug, sources date: 20160102, built on: 2019-12-08 19:19:20 UTC 5.0.1+git-7433-0df9f22f2 http://www.kvirc.net/]
<apritzel>
jernej: are the AC200 runes the same for the H6? I mean the actual I2C registers? That's still the same IP as the acutal chip in there, right?
<jernej>
yes
<jernej>
I'm not sure about efuses
<apritzel>
I am just interested in the Ethernet for now ...
linkmauve has quit [Ping timeout: 246 seconds]
<apritzel>
do you know which PWM and I2C it is? I tried guessing, but U-Boot said: no
<apritzel>
it's just a U-Boot hack for now (tired of swapping this USB key), and for this part I rely on your H616 T95 hack ;-
<jernej>
what are you trying to achieve?
willmore has joined #linux-sunxi
<apritzel>
have Ethernet with the ePHY in U-Boot. I updated your T95 U-Boot hack and it worked on my X96 Mate box, but now I need it on the H6 box as well
<apritzel>
and thanks for the sunxi-dump hint, by the way, the actual pin config is slightly different than expected
<apritzel>
for instance R_I2C is gpio out, and PL6 is also "out hi"
<jernej>
interesting, PL6 is not referenced in DT
<jernej>
by R_I2C you mean PL0 and PL1, right?
<apritzel>
yes
tuxd3v has quit [Remote host closed the connection]
azend has joined #linux-sunxi
azend has quit [Ping timeout: 240 seconds]
cmeerw has quit [Ping timeout: 260 seconds]
tuxd3v has joined #linux-sunxi
<tuxd3v>
I am trying to boot my NanoPi NEO Air, from sdcard, but mainline uboot doesn't load, intead it loads emmc one :(
<tuxd3v>
the one in the emmc is ancient
<tuxd3v>
I am trying uboot v2021.01
<tuxd3v>
unless H3 cpu uses another boot schemme than traditional allwinner socs
<apritzel>
tuxd3v: H3 is very normal in this respect
<apritzel>
do you see the new SPL?
<tuxd3v>
no
<tuxd3v>
I see the one in the emmc flash :(
<apritzel>
so it ignore your SD card at all?
<tuxd3v>
the allwiner one
<tuxd3v>
it seems that is ignoring the sdcard, but I tried armbian and armbian bootloader boots up, I see the SPl 2020.10-armbian
<tuxd3v>
I simply can't use the mainline, I don't know why in neo Air
<apritzel>
that's odd, that part is the least fragile
<apritzel>
at least you should see the SPL banner
<apritzel>
dd'ed to bs=1k seek=8?
<tuxd3v>
yeah, I should :/
<apritzel>
wow, wait!
<apritzel>
do you have CONFIG_SPL_SPI_SUNXI defined?
<apritzel>
ah, no, scratch that
<tuxd3v>
let me check :)
<apritzel>
that's the SPI, which you don't have
<apritzel>
(I thought for a moment it was missing the SPL symbol)
<tuxd3v>
I believe I don't have spi, I don't know...I just assembled it, and now the heatsink is big and doesn't let me see below
<tuxd3v>
the wrote the bootloader to the emmc
<tuxd3v>
like if it was a sdcard
<tuxd3v>
but I do see 2 disks of 4MB each :/
<tuxd3v>
2 spi flash devices?
<apritzel>
where do you see them? in Linux?
<tuxd3v>
yeah
<apritzel>
4MB smells like the two eMMC boot partitions
<apritzel>
that's not the droi^Wpartitions you are looking for
<tuxd3v>
but were is the hardware for them? are they in the emmc flash chip?
<apritzel>
at least not with that config
<tuxd3v>
the emmc flash chip is of 8GB
<apritzel>
yes, they are separate storage inside the eMMC chip
<apritzel>
especially the "Installing mainline U-Boot in a boot partition"
<apritzel>
but I recommend you get the SD card working first ;-)
<tuxd3v>
apritzel, many many taanks, I am fighting it since yesterday, went crazy in full drive with 2 hardware devices of 4MB that doesn't exist in the board :D
<tuxd3v>
apritzel, well that is the problem I tried uboot 2021.01 but it doesn't work :/
<tuxd3v>
in the sdcard
<apritzel>
why not 2021.04?
<tuxd3v>
well, you right, I forgot to update my builder :)
<tuxd3v>
thanks
<apritzel>
just trying on my OrangePi Zero as we speak
<tuxd3v>
your Orange zero also has emmc?
<apritzel>
no, but SD card ;-)
<tuxd3v>
I am going to test uboot 2021.04 :)
<apritzel>
both mainline and 2021.04 work for me on the OPi Zero
<apritzel>
and as I said: no output at all from SD card is rare
<tuxd3v>
yeah with 2020.01 it is not working with neoAir
<apritzel>
does "ext4ls mmc 0:1" work and show boot.scr?
<tuxd3v>
** Unrecognized filesystem type **
<tuxd3v>
i tried 'ext2ls' and 'ext4ls' both fail
<tuxd3v>
But if I do 'ext4ls 0:2' it shows rootfs content
<tuxd3v>
so its ext2 that doesn't work
<apritzel>
what does Linux say about this partition?
<apritzel>
maybe you did accidentally overwrite the beginning of it with your "dd"?
<apritzel>
which is a cool feature of those boot partitions, btw: they are just for U-Boot, you cannot overwrite other data and U-Boot doesn't need to share
sunshavi has quit [Ping timeout: 265 seconds]
<tuxd3v>
maybe I screw the partition yes
<tuxd3v>
I run a fsck on it and it presented a lot of problems in inods..
<tuxd3v>
inodes
<tuxd3v>
apritzel, and then how to you upgrade those boot partitions?
<tuxd3v>
I mean if you want too
<tuxd3v>
its ninja stuff
<tuxd3v>
:D
<tuxd3v>
Yeah the Idea of boot partitions is good, in that way you don't need SPI flash devices :)
<apritzel>
yes, and basically every eMMC has them
<tuxd3v>
why they were not used before and everybody was going with SPI flash in their designs?
<apritzel>
and upgrading is really easy: just unlock them, then dd to sector 0
<tuxd3v>
I believe those sectors are 4096kB right?
<apritzel>
SPI flash has other advantages (better for environment / variable storage, for instance)
<tuxd3v>
to make 4MB each
<apritzel>
2 * 4MB is a typical value for those smaller eMMCs
<apritzel>
but the 64GB eMMC in the X96 Mate has 32MB partitions, for instance
<tuxd3v>
I need to check the emmc better now I will be focused in get again my /boot working, but very nice of you, to tell me about uboot 2021.04
<tuxd3v>
it does work :)
<apritzel>
also eMMC is quite expensive, compared to the price of a cheap board
<tuxd3v>
indeed, nanopi neo Air costs a lot of money for what it is, to be honest..
<tuxd3v>
I can do the same with a bananapi m2 zero
<tuxd3v>
for almost 20$
<tuxd3v>
while nanopi neo Air costs a lot more
<tuxd3v>
but it has the flash storage, and ubunto core come preloaded..although its a very old release
<apritzel>
Pine64 has those nice sockets on the board, so you can add an eMMC module, if you like
<tuxd3v>
but I didn't knew about those 2 partitions..
<tuxd3v>
never come up to me :)
<tuxd3v>
one maybe is a backup of the other or something else..