Turl changed the topic of #linux-sunxi to: Allwinner/sunxi /development discussion - did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait! - https://github.com/linux-sunxi/ - Logs at http://irclog.whitequark.org/linux-sunxi
<lurchi_> Guest13123: thats typical for nand, in case one of the blocks is broken
<lurchi_> the bootloader tries to reads blocks until it finds one with correct checksums
<Guest13123> pmpp: how is the h3 nand?
<pmpp> i don't have any nand based h3
<Guest13123> ah.
<pmpp> only A23/A33 7" cheapo tab
<gnarface> Guest13123: not sure about any of this, but i do know that for the instructions i followed, it was mentioned specifically that while most partitioning software will safely skip the first 2MB by default, it's possible that some will not unless you explicitly tell it to. if your partitioning software defaults to starting right at 0 that may be a mistake
<gnarface> Guest13123: i mean, that may be the mistake
<Guest13123> gnarface: are you sure that's not referring to mmc/sd rather than nand?
<gnarface> Guest13123: no, i'm not sure of that, but i took it to be non-media-specific
<Guest13123> nand does not have a dos mbr. its partition table has a completely different structure
<gnarface> that's something the nand chooses? i thought that was something the OS chooses
<Guest13123> well, i'm pretty sure the boot rom chooses it
<gnarface> but u-boot doesn't read partition tables, it just reads from a raw memory sector on the disk. it needs filesystem support but afaik it's partition-table agnostic
<gnarface> i thought, at least. maybe i have that wrong...
<Guest13123> yeah, but something reads u-boot itself from the nand, too
<lurchi_> gnarface: u-boot *does* read partition tables, MBR, GPT, ...
<gnarface> hmmm. i'm out of my depth then
<gnarface> nevermind me
* gnarface goes back to struggling with it
<Guest13123> the wiki says boot0 chains to u-boot, but boot0 has to be stored somewhere, too
<lurchi_> boot0, or alternatively U-Boot SPL, stored at a fixed position
<Guest13123> yes, but obviously that position is not zero
<lurchi_> 32k for current SoCs, at least for SD and eMMC
<Guest13123> it's 8k for SD
Wizzup has quit [Ping timeout: 248 seconds]
<Guest13123> the "bootloader" partition (FAT) starts at 16MB. could it be a fixed location within that?
<lurchi_> no, thats the third bootloader stage
<Guest13123> the wiki says there is no third stage on later chips
<lurchi_> ROM bootloader -> SPL (u-boot/boot0) -> TPL (proper U-Boot)
<Guest13123> OK, if you count rom
<lurchi_> its not part of the chip, but the way u-boot is designed
<Guest13123> i think boot0 might be loading the kernel (at least in the original firmware)
jrg has joined #linux-sunxi
<pmpp> didn't you found env part with boot.scr ?
<pmpp> i found mine in nanb https://pastebin.com/raw/Z19MdU3f
tllim has quit [Ping timeout: 258 seconds]
Wizzup has joined #linux-sunxi
<Guest13123> pmpp: yes, but that's just the env
<pmpp> so you know which is kernel and env that give you not much left :p
<Guest13123> the partition called "boot" is the kernel (nandc)
<Guest13123> but that does not tell me where the SPL is
<Guest13123> and aside from the original firmware still on the nand, the only kernel i have successfully booted is mainline, but that cannot read nand
<Guest13123> in the logs of this channel, MoeIcenowy mentioned better progress a while back, but i have not been able to duplicate it
anarsoul has quit [Ping timeout: 248 seconds]
alexxey has joined #linux-sunxi
anarsoul has joined #linux-sunxi
Andy-D has quit [Ping timeout: 240 seconds]
tllim has joined #linux-sunxi
popolon has quit [Quit: WeeChat 1.9.1]
alexxey has left #linux-sunxi ["Leaving"]
anarsoul|2 has quit [Ping timeout: 252 seconds]
cnxsoft has joined #linux-sunxi
ninolein_ has quit [Ping timeout: 255 seconds]
ninolein has joined #linux-sunxi
kaspter has quit [Quit: kaspter]
tllim has quit [Ping timeout: 255 seconds]
tllim has joined #linux-sunxi
kaspter has joined #linux-sunxi
wcc has joined #linux-sunxi
wcc has quit [Client Quit]
kaspter has quit [Quit: kaspter]
kaspter has joined #linux-sunxi
MoeIcenowy has quit [Ping timeout: 248 seconds]
dave0x6d has quit [Quit: Connection closed for inactivity]
kaspter has quit [Remote host closed the connection]
MoeIcenowy has joined #linux-sunxi
kaspter has joined #linux-sunxi
tllim has quit [Ping timeout: 246 seconds]
tllim has joined #linux-sunxi
kaspter1 has joined #linux-sunxi
kaspter has quit [Ping timeout: 240 seconds]
kaspter1 is now known as kaspter
tllim has quit [Ping timeout: 255 seconds]
tllim has joined #linux-sunxi
TheSeven has quit [Ping timeout: 255 seconds]
TheSeven has joined #linux-sunxi
tllim has quit [Ping timeout: 246 seconds]
tllim has joined #linux-sunxi
tllim has quit [Ping timeout: 252 seconds]
lurchi__ has joined #linux-sunxi
lurchi_ has quit [Ping timeout: 255 seconds]
tllim has joined #linux-sunxi
IgorPec has joined #linux-sunxi
RichardG867 has quit [Ping timeout: 255 seconds]
RichardG867 has joined #linux-sunxi
RichardG867 has quit [Changing host]
RichardG867 has joined #linux-sunxi
RichardG867 has quit [Ping timeout: 260 seconds]
JohnDoe_71Rus has joined #linux-sunxi
RichardG867 has joined #linux-sunxi
RichardG867 has quit [Changing host]
RichardG867 has joined #linux-sunxi
<montjoie> dwmac-sun8i merged in net!
<MoeIcenowy> wow
<MoeIcenowy> exciting
jbrown has quit [Ping timeout: 240 seconds]
MoeIcenowy has quit [Remote host closed the connection]
reinforce has joined #linux-sunxi
chomwitt has joined #linux-sunxi
maz has joined #linux-sunxi
anarsoul|2 has joined #linux-sunxi
chomwitt has quit [Ping timeout: 240 seconds]
Mr__Anderson has joined #linux-sunxi
dev1990 has joined #linux-sunxi
chomwitt has joined #linux-sunxi
anarsoul|2 has quit [Ping timeout: 248 seconds]
Mr__Anderson has quit [Remote host closed the connection]
dev1990 has quit [Quit: Konversation terminated!]
msimpson has joined #linux-sunxi
sr-digitronic has joined #linux-sunxi
yann|work has quit [Ping timeout: 240 seconds]
maz has quit [Ping timeout: 248 seconds]
maz has joined #linux-sunxi
MoeIcenowy has joined #linux-sunxi
xvnvx has joined #linux-sunxi
xvnvx has quit [Max SendQ exceeded]
aalm has joined #linux-sunxi
cafijo has joined #linux-sunxi
cafijo has quit [Client Quit]
yann|work has joined #linux-sunxi
Ntemis has joined #linux-sunxi
matthias_bgg has joined #linux-sunxi
fkluknav has joined #linux-sunxi
lkcl has quit [Ping timeout: 240 seconds]
maz has quit [Ping timeout: 252 seconds]
tllim has quit [Read error: Connection reset by peer]
aballier has joined #linux-sunxi
xvnvx has joined #linux-sunxi
chomwitt has quit [Quit: WeeChat 1.0.1]
xvnvx has quit [Max SendQ exceeded]
xvnvx has joined #linux-sunxi
xvnvx has quit [Max SendQ exceeded]
xvnvx has joined #linux-sunxi
maz has joined #linux-sunxi
<MoeIcenowy> mripard: U-Boot ethaddr code now cannot give ethernet labels that doesn't exist in U-Boot dtb but exists in Linux dtb mac addresses
umit has joined #linux-sunxi
maz has quit [Ping timeout: 248 seconds]
aalm has quit [Quit: xyz 1.9.1]
<MoeIcenowy> mripard: patch sent for this
umit has quit [Ping timeout: 260 seconds]
lerc has quit [Remote host closed the connection]
maz has joined #linux-sunxi
xvnvx has quit [Quit: Leaving]
lerc has joined #linux-sunxi
chomwitt has joined #linux-sunxi
kever has quit [Ping timeout: 258 seconds]
maz has quit [Ping timeout: 240 seconds]
vagrantc has joined #linux-sunxi
VargaD_ has joined #linux-sunxi
cnxsoft has quit [Read error: Connection reset by peer]
cnxsoft has joined #linux-sunxi
VargaD has quit [Ping timeout: 255 seconds]
VargaD_ is now known as VargaD
IgorPec2 has joined #linux-sunxi
IgorPec has quit [Ping timeout: 252 seconds]
jogoes has joined #linux-sunxi
<jogoes> Hi, Anybody knows if is possible to use more than one slave with the V3S chip SPI peripheral? I have been reviewing the V3S datasheet, but I can only find one chip select (CS0).
<MoeIcenowy> jogoes: you can use GPIO CS
<MoeIcenowy> why is there more and more people playing with V3s?
<MoeIcenowy> interesting
<jogoes> But, is there any dedicated GPIO for Cs1, Cs2 and Cs3 ?
<jogoes> the datasheet states that is possible to use up to 4 spi CS slaves
<jogoes> But i have seen that normally only CS0 is used, and the SPI peripheral is normally connected to a flash memory slave
<MoeIcenowy> no
<MoeIcenowy> the IP block has 4 CS's, but only one is wired to the pin controller
<jogoes> So physically, only is possible to connect CS0 to external slaves, right?
<MoeIcenowy> yes
<MoeIcenowy> but the Linux SPI framework allows you to use GPIOs as extra CS's
<jogoes> I was trying to add a second SPI slave to my board, and adding a second chip select on the .fex file, but I was not succesful. I got problems with the flash memory and also I could not make appear the spi devices on /dev/spidev
<jogoes> I was expecting to get something like dev/spidev/spi0.0 and dev/spidev/spi0.1
<jogoes> But i got nothing
<MoeIcenowy> I think FEX maybe not able to activate GPIO CS
datoga has joined #linux-sunxi
<jogoes> So... do you know what would be the way for activating those extra CS?
<jogoes> Btw, MoeIcenowy, thank you for your answers and help
IgorPec has joined #linux-sunxi
IgorPec2 has quit [Ping timeout: 246 seconds]
maz has joined #linux-sunxi
Uninstall has joined #linux-sunxi
Uninstall has quit [Changing host]
Uninstall has joined #linux-sunxi
IgorPec has quit [Ping timeout: 248 seconds]
forte has joined #linux-sunxi
forte has quit [Client Quit]
Andy-D has joined #linux-sunxi
dave0x6d has joined #linux-sunxi
<Guest13123> MoeIcenowy: and do any of your A33 tablets have such an SPI peripheral in their fex? this one does
maz has quit [Ping timeout: 240 seconds]
matthias_bgg has quit [Ping timeout: 255 seconds]
Uninstall has quit [Remote host closed the connection]
zoobab has quit [Read error: Connection reset by peer]
jbrown has joined #linux-sunxi
<Pe3ucTop> MoeIcenowy: sorry, but could you direct of any example/documentatino of using GPIO as CS for SPI ? I'm realy interested in it too.
<Pe3ucTop> and do it's possible to mix hw CS and GPIO CS ?
<Pe3ucTop> beeble: thanks, will get a look.
<beeble> yes it is
<Pe3ucTop> I'm going to be happy and will have big rework of design, urrr..
<MoeIcenowy> In fact in Linux the native CS should also be toggled by spi framework
<Pe3ucTop> Than it already is possible in V3s, going to try.
<Pe3ucTop> Do anyone knov is it possible to control Ethernel LEDs as GPIO ? I do not need those main function, but I do need additional GPIOs.
<Pe3ucTop> ?
<Guest13123> Pe3ucTop: the ledtrigger drivers
<Guest13123> at least in mainline
<MoeIcenowy> I think it's not possible
<MoeIcenowy> ledtrigger is used for the contrast -- use random GPIO as Ethernet LEDs
jogoes has quit [Ping timeout: 260 seconds]
<MoeIcenowy> The Ethernet LED is directly controlled by the Ethernet PHY
<Guest13123> Pe3ucTop: do you mean an LED that is on the port? or elsewhere on the board?
<Pe3ucTop> Guest13123: yes, LEDs connected to Ethernet phy.
<Guest13123> i thought you meant you wanted to use an additional LED on the board as an eth LED. sorry
sr-digitronic has quit [Remote host closed the connection]
JohnDoe_71Rus has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
yann-kaelig has joined #linux-sunxi
<Pe3ucTop> ok, no problem, but I anyway going to check ability to control those pins by sw. I know some phy are able to switch those pins mode. So why those could not be as i2c/mdio controled GPIOs :)
<MoeIcenowy> yes for building the quite old lichee linux you need to use the quite old toolchain
<Guest13123> ahh, that might be why i can get only mainline to boot
<MoeIcenowy> nope
<Guest13123> no?
<MoeIcenowy> when I'm using gcc 4.9
<MoeIcenowy> it can boot
<MoeIcenowy> but hang when trying to clean display
<MoeIcenowy> to boot legacy kernel with mainline u-boot
<MoeIcenowy> you will need set two u-boot env varsa
<MoeIcenowy> s/varsa/vars/
<Guest13123> using 4.8 here, and it hangs on Booting kernel...
<MoeIcenowy> setenv bootm_boot_mode sec; setenv machid 1029
<Guest13123> hmm, i missed the machid one
<Guest13123> was only setting boot mode
<Guest13123> btw, does bootm_boot_mode also apply to bootz?
<MoeIcenowy> bootz seems to be not able to boot legacy kernel
<Guest13123> OK. why does mainline U-boot ignore the boot.scr passed to it in ram via FEL?
<MoeIcenowy> I don't know...
<Guest13123> so usb boot simply isn't possible?
<MoeIcenowy> it is
<MoeIcenowy> maybe you should check your setup
<Guest13123> U-boot loads over usb, but then the text scrolls by quickly, so i can't be sure of the error, but it is the same in the end as when boot.scr is not found
Andy-D_ has joined #linux-sunxi
Andy-D has quit [Ping timeout: 240 seconds]
lkcl has joined #linux-sunxi
<jernej> ‎Guest13123‎: You have to use a bit different file, not boot.scr directly.
<jernej> it is a plain text file and first line has to be: #=uEnv
<jernej> so, it is actually uEnv.txt format
maz has joined #linux-sunxi
_whitelogger_ has joined #linux-sunxi
_whitelogger has quit [Remote host closed the connection]
cnxsoft has quit [Quit: cnxsoft]
_whitelogger has joined #linux-sunxi
_whitelogger_ has quit [Ping timeout: 246 seconds]
_whitelogger has joined #linux-sunxi
Putti has quit [Remote host closed the connection]
_whitelogger_ has joined #linux-sunxi
_whitelogger has quit [Ping timeout: 258 seconds]
maz has joined #linux-sunxi
<Guest13123> MoeIcenowy: did you get a33 nand recognized in mainline?
<Guest13123> kernel, that is
IgorPec has joined #linux-sunxi
msimpson has quit [Quit: Leaving]
tllim has joined #linux-sunxi
maz has quit [Ping timeout: 255 seconds]
reinforce has quit [Quit: Leaving.]
MoeIcenowy has quit [Remote host closed the connection]
matthias_bgg has joined #linux-sunxi
willmore has quit [Read error: Connection reset by peer]
dev1990 has joined #linux-sunxi
Ntemis has quit [Remote host closed the connection]
willmore has joined #linux-sunxi
tl_lim has joined #linux-sunxi
tllim has quit [Ping timeout: 252 seconds]
Putti has quit [Remote host closed the connection]
Putti has joined #linux-sunxi
putti_ has joined #linux-sunxi
Putti has quit [Ping timeout: 248 seconds]
reinforce has joined #linux-sunxi
putti_ has quit [Remote host closed the connection]
putti_ has joined #linux-sunxi
putti_ is now known as Putti
yann-kaelig has quit [Quit: I'll be back]
yann-kaelig has joined #linux-sunxi
Guest13123 has quit [Ping timeout: 260 seconds]
yann|work has quit [Ping timeout: 240 seconds]
Putti has quit [Ping timeout: 248 seconds]
anarsoul|2 has joined #linux-sunxi
Putti has joined #linux-sunxi
VargaD has quit [Quit: ZNC - http://znc.in]
VargaD has joined #linux-sunxi
Guest74993 has joined #linux-sunxi
aalm has joined #linux-sunxi
SP7RT has joined #linux-sunxi
<Guest74993> pmpp: FWIW, since i set the machid in the env, i can boot the legacy kernel from usb, but still not from mmc
<Guest74993> i'm probably missing something simple
vagrantc has joined #linux-sunxi
tl_lim has quit [Ping timeout: 252 seconds]
SP7RT_ has joined #linux-sunxi
SP7RT has quit [Ping timeout: 258 seconds]
Mr__Anderson has joined #linux-sunxi
IgorPec has quit [Ping timeout: 248 seconds]
Putti has quit [Ping timeout: 248 seconds]
Mr__Anderson has quit [Quit: Leaving.]
vagrantc_ has joined #linux-sunxi
vagrantc has quit [Ping timeout: 246 seconds]
vagrantc_ is now known as vagrantc
popolon has joined #linux-sunxi
TEKrantz has quit [Read error: Connection reset by peer]
Putti has joined #linux-sunxi
TEKrantz has joined #linux-sunxi
SP7RT_ has quit [Ping timeout: 248 seconds]
vagrantc has quit [Ping timeout: 255 seconds]
pmpp has quit [Quit: No Ping reply in 180 seconds.]
pmpp has joined #linux-sunxi
vagrantc has joined #linux-sunxi
dev1990 has quit [Read error: Connection reset by peer]
SP7RT has joined #linux-sunxi
Putti has quit [Quit: Leaving]
Putti has joined #linux-sunxi
pmpp has quit [Quit: No Ping reply in 180 seconds.]
Putti has quit [Client Quit]
Putti has joined #linux-sunxi
pmpp has joined #linux-sunxi
pmpp has quit [Client Quit]
pmpp has joined #linux-sunxi
<Guest74993> pmpp: hi
tl_lim has joined #linux-sunxi
pmpp has quit [Quit: No Ping reply in 180 seconds.]
pmpp has joined #linux-sunxi
pmpp has quit [Quit: No Ping reply in 180 seconds.]
lkcl has quit [Ping timeout: 255 seconds]
pmpp has joined #linux-sunxi
Putti has quit [Ping timeout: 248 seconds]
hanetzer has joined #linux-sunxi
<hanetzer> heyo o/
Putti has joined #linux-sunxi
SP7RT has quit [Ping timeout: 258 seconds]
lkcl has joined #linux-sunxi
yann|work has joined #linux-sunxi
matthias_bgg has quit [Ping timeout: 240 seconds]
Ntemis has joined #linux-sunxi
matthias_bgg has joined #linux-sunxi
boycottg00gle has joined #linux-sunxi
tl_lim has quit [Read error: Connection reset by peer]
tl_lim has joined #linux-sunxi
lkcl has quit [Ping timeout: 240 seconds]
boycottg00gle has quit [Remote host closed the connection]
tl_lim has quit [Quit: Leaving]
tllim has joined #linux-sunxi
lkcl has joined #linux-sunxi
Putti has quit [Remote host closed the connection]
Putti has joined #linux-sunxi
fkluknav has quit [Ping timeout: 255 seconds]
vagrantc has quit [Quit: leaving]
reinforce has quit [Quit: Leaving.]
JohnDoe_71Rus has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
lkcl has quit [Remote host closed the connection]
tllim has quit [Ping timeout: 252 seconds]
tllim has joined #linux-sunxi
hanetzer has quit [Ping timeout: 248 seconds]
uwe_ has quit [Remote host closed the connection]
akaWolf has quit [Ping timeout: 260 seconds]
hanetzer has joined #linux-sunxi
Putti has quit [Ping timeout: 248 seconds]
Ntemis has quit [Ping timeout: 246 seconds]
tllim has quit [Ping timeout: 252 seconds]
Mr__Anderson has joined #linux-sunxi
tllim has joined #linux-sunxi
freemangordon has quit [Ping timeout: 240 seconds]
matthias_bgg has quit [Ping timeout: 240 seconds]
hanetzer has quit [Remote host closed the connection]
Mr__Anderson has quit [Ping timeout: 260 seconds]
Mr__Anderson has joined #linux-sunxi
wubbalubbadupdup has joined #linux-sunxi
<wubbalubbadupdup> Hello, I can't get a confirmation email
<wubbalubbadupdup> Besides, is there to-do, I may contribute by driver dev
yann-kaelig has quit [Quit: I'll be back]
<anarsoul|2> wubbalubbadupdup: http://linux-sunxi.org/Linux_mainlining_effort
<wubbalubbadupdup> Thanks