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
physis has joined #linux-sunxi
ricardocrudo has quit [Ping timeout: 258 seconds]
Renard has quit [Remote host closed the connection]
sdschulze has quit [Ping timeout: 244 seconds]
egbert has joined #linux-sunxi
khuey is now known as khuey|away
egbert_ has quit [Ping timeout: 264 seconds]
physis has quit [Remote host closed the connection]
ninolein has joined #linux-sunxi
ninolein_ has quit [Ping timeout: 258 seconds]
khuey|away is now known as khuey
egbert has quit [Disconnected by services]
egbert has joined #linux-sunxi
Andy_D has quit [Ping timeout: 258 seconds]
FR^3 has joined #linux-sunxi
FR^3 has quit [Remote host closed the connection]
FR^3 has joined #linux-sunxi
FR^4 has quit [Ping timeout: 265 seconds]
TheSeven has quit [Disconnected by services]
[7] has joined #linux-sunxi
FR^3 has quit [Remote host closed the connection]
FR^3 has joined #linux-sunxi
p1u3sch1 has quit [Ping timeout: 256 seconds]
p1u3sch1 has joined #linux-sunxi
Andy_D has joined #linux-sunxi
FR^3 has quit [Remote host closed the connection]
FR^3 has joined #linux-sunxi
khuey is now known as khuey|away
orly_owl has quit [Read error: Connection reset by peer]
orly_owl has joined #linux-sunxi
iamfrankenstein has joined #linux-sunxi
iamfrankenstein has quit [Ping timeout: 272 seconds]
leviathancn has joined #linux-sunxi
domidumont has joined #linux-sunxi
domidumont has quit [Remote host closed the connection]
domidumont has joined #linux-sunxi
_massi has joined #linux-sunxi
domidumont1 has joined #linux-sunxi
sehraf has joined #linux-sunxi
domidumont has quit [Ping timeout: 246 seconds]
domidumont1 has quit [Ping timeout: 246 seconds]
philippe_fouquet has joined #linux-sunxi
<philippe_fouquet> hi
<philippe_fouquet> I try to add nand suport on uboot
<philippe_fouquet> but i have a question in uboot the nand are manage by mtd device but in kernel it manage by block device
<philippe_fouquet> which will it be the best to add under mtd for uboot and change the driver for kernel
<philippe_fouquet> or to add like block device in uboot (that no standard) and don't change the nand driver in kernel?
petr has joined #linux-sunxi
atsampso1 has joined #linux-sunxi
atsampson has quit [Ping timeout: 256 seconds]
petr has quit [Remote host closed the connection]
ricardocrudo has joined #linux-sunxi
petr has joined #linux-sunxi
VargaD_ has joined #linux-sunxi
mrnuke has quit [Remote host closed the connection]
mrnuke has joined #linux-sunxi
VargaD has quit [Ping timeout: 246 seconds]
VargaD_ is now known as VargaD
mmarker_ has joined #linux-sunxi
HeavyMetal_ has joined #linux-sunxi
leio_ has joined #linux-sunxi
furan-_ has joined #linux-sunxi
petr_ has joined #linux-sunxi
xnxs has joined #linux-sunxi
diego71_ has joined #linux-sunxi
petr has quit [*.net *.split]
HeavyMetal has quit [*.net *.split]
specing has quit [*.net *.split]
mmarker has quit [*.net *.split]
furan- has quit [*.net *.split]
diego71 has quit [*.net *.split]
wigyori has quit [*.net *.split]
mturquette has quit [*.net *.split]
vpeter has quit [*.net *.split]
leio has quit [*.net *.split]
xenoxaos has quit [*.net *.split]
xnxs is now known as xenoxaos
specing has joined #linux-sunxi
wigyori has joined #linux-sunxi
mturquette has joined #linux-sunxi
<philippe_fouquet> I try to add nand suport on uboot
<philippe_fouquet> but i have a question in uboot the nand are manage by mtd device but in kernel it manage by block device
<philippe_fouquet> which will it be the best to add under mtd for uboot and change the driver for kernel
petr_ is now known as petr
petr has quit [Client Quit]
<philippe_fouquet> or to add like block device in uboot (that no standard) and don't change the nand driver in kernel?
petr has joined #linux-sunxi
vpeter has joined #linux-sunxi
Renard has joined #linux-sunxi
montjoie has quit [Remote host closed the connection]
RzR has quit [Excess Flood]
RzR has joined #linux-sunxi
montjoie has joined #linux-sunxi
mrnuke has quit [Ping timeout: 265 seconds]
leviathancn has quit [Ping timeout: 246 seconds]
mrnuke has joined #linux-sunxi
lemonzest has joined #linux-sunxi
mrnuke has quit [Ping timeout: 265 seconds]
mrnuke has joined #linux-sunxi
mrnuke has quit [Ping timeout: 265 seconds]
mrnuke has joined #linux-sunxi
shama has joined #linux-sunxi
ricardocrudo has quit [Ping timeout: 265 seconds]
shama has left #linux-sunxi [#linux-sunxi]
shamans has joined #linux-sunxi
_massi has quit [Remote host closed the connection]
paulk-collins has joined #linux-sunxi
<shamans> hi
<shamans> How can I change mac address on Allwinner A31?
sdschulze has joined #linux-sunxi
<RSpliet> philippe_fouquet: Have you seen the patches done by Daniel Kochmański?
physis has joined #linux-sunxi
paulk-collins has quit [Ping timeout: 246 seconds]
paulk-collins has joined #linux-sunxi
<philippe_fouquet> RSpliet: no I start from a project : https://github.com/yuq/u-boot-sunxi.git
mmarker_ has quit [Ping timeout: 264 seconds]
<RSpliet> philippe_fouquet: ah yes... those patches are slightly older, they might have some problems integrating into todays u-boot
domidumont has joined #linux-sunxi
<RSpliet> Daniel has recently published his few patches here: https://gitlab.com/turtle-solutions/u-boot/commits/sunxi-nand
<RSpliet> I think we should try and concentrate all our development in one place, hence the warning ;-)
<RSpliet> from my recollection, yug got further in terms of HW support
<philippe_fouquet> RSpliet: I integrate this all patch but but I stay I change uboot or kernel
<philippe_fouquet> and it work but my kernel are not ready for mtd nand device that why I ask this question
<RSpliet> ok... which kernel driver are you referring to?
<philippe_fouquet> linux-sunxi
<jackdaniel> philippe_fouquet: do you refer to 3.4 kernel?
<philippe_fouquet> branch sunxi-3.4
<RSpliet> right... the proper way to go is the work done by some of the chaps here that's on it's way upstream, handling it as a proper MTD device
<jackdaniel> (ring-buf-end rbuf))
<RSpliet> these patches should still mostly apply on 3.19, and if you then properly define your MTD in the device tree you're good to go
<jackdaniel> ops
<RSpliet> (or 4.0, or 4.1rc3 for that matter...)
reinforce has joined #linux-sunxi
<jackdaniel> I'm not sure if mtd driver for u-boot would fit in spl
<RSpliet> jackdaniel: it has to :-P
<philippe_fouquet> ok the best way that i work on mdt device
<jackdaniel> dma driver (I'm Daniel btw) is smaller then full nand handling from u-boot
<RSpliet> philippe_fouquet: I'm not sure what you mean with "work on", but I am succesfully using the driver as I posted 7 lines up
<RSpliet> jackdaniel: ah hey! good to know you hang around here too :-) well, yes, a full NAND driver for SPI might be too big, all it needs to do is load U-boot from a known location using known hardware settings
paulk-collins has quit [Ping timeout: 264 seconds]
<jackdaniel> :-)
<RSpliet> then again, if it's an SPI for a NAND target, wouldn't it be easier to rip out MMC support during build?
<jackdaniel> mmc is disabled for spl
<jackdaniel> on abovementioned patchset - it locks on initialization if enabled
<RSpliet> jackdaniel: btw, what method are you using to write U-boot into NAND?
<jackdaniel> I boot kernel ^_^
<jackdaniel> from mmc°
<RSpliet> hehe, yeah, that's my approach too
<RSpliet> but for some reason BROM refuses to load my mostly-unmodified "u-boot-sunxi-with-spl.bin" (flashwritten into NAND)
<jackdaniel> I have special initramfs for that
<jackdaniel> RSpliet: does your kernel support randomization?
<jackdaniel> it's crucial
<RSpliet> jackdaniel: yes it does!
<RSpliet> I took the git patches from bbrezillon to support ECC and randomisation
<jackdaniel> and you flash it to /dev/mtd0 ?
<RSpliet> *and* /dev/mtd1
<jackdaniel> weird, and w/o modifications it just works?
<RSpliet> it doesn't
<jackdaniel> oh, and you erase it before writing?
<RSpliet> my u-boot is basically an upstream u-boot (sunxi tree if I recall correctly), with your https://gitlab.com/turtle-solutions/u-boot/commit/f2363c6fbb1c31d2024a5343ce8cf5c9d8139fc8 on yop
<RSpliet> I did
<RSpliet> SPI does serial output right? :-D
<jackdaniel> SPL? yes
<RSpliet> yeah, so I would have expected a message saying no u-boot found
<jackdaniel> so neither of u-boots boots from nand?
<jackdaniel> and what device do you have?
<RSpliet> they don't
<RSpliet> Allwinner A20 (Olimex Lime)
<jackdaniel> sec, I'll check my script - what I exactly do in initramfs
<jackdaniel> do you add -p flag?
<jackdaniel> when writing? and -N when erasing?
<jackdaniel> flash_erase -N /dev/mtd0 0 0 ; nandwrite -p /dev/mtd0 u-boot-sunxi-with-spl.bin
physis has quit [Remote host closed the connection]
mmarker has joined #linux-sunxi
mmarker has joined #linux-sunxi
paulk-collins has joined #linux-sunxi
<RSpliet> ah, no, no -N
<RSpliet> what are your ECC and randomisation settings in your DT?
<jackdaniel> hw_syndrome, hw, 0x4a80
<jackdaniel> for first two partitions
<jackdaniel> pages°
<jackdaniel> strendgth 0x18, step-size 1024
<jackdaniel> s/strendgth/strength/
<RSpliet> interesting... when I had hw_syndrome on my board, I couldn't read back the original U-boot
<jackdaniel> it might be due wrong ecc settings
<jackdaniel> syndrome is only for first 4M tough, rest is normal
paulk-collins has quit [Ping timeout: 252 seconds]
<shamans> How can I change mac address on Allwinner A31? (wi-fi)
<jackdaniel> I coudln't read back nothing back until got right strength and step-size, but BROM was working ok even if got this wrong
<RSpliet> well, my NAND came pre-loaded with U-boot
physis has joined #linux-sunxi
<RSpliet> and with hw_syndrome I was unable to recognise it's header
<jackdaniel> and I have preformatted whole nand before first use (I mean - without kernel skipping bad blocks - separate build with hack)
<RSpliet> oh btw, was ECC strength 24 mandatory for you?
<RSpliet> I'm kind of worried what the implications of such strengths are for SLC (with very little OOB area, barely sufficient for 16-bit strength)
naobsd has joined #linux-sunxi
viccuad has joined #linux-sunxi
<jackdaniel> no it wasn't, u-boot worked, but couldn't read back from syndrome
<jackdaniel> and it was adjusted experimentally ^_^
<jackdaniel> it might be, that some other values work well
<jackdaniel> 24/1024 worked for me
pekka30 has quit [Quit: Leaving.]
<shamans> How get u-boot prompt without serial port connection?
pekka30 has joined #linux-sunxi
ricardocrudo has joined #linux-sunxi
physis has quit [Remote host closed the connection]
physis has joined #linux-sunxi
awe00 has joined #linux-sunxi
shamans has quit [Ping timeout: 246 seconds]
leio_ is now known as leio
domidumont has quit [Ping timeout: 246 seconds]
afaerber has joined #linux-sunxi
taCoUser1434 has joined #linux-sunxi
taCoUser1434 is now known as flyhorse
awe00 has quit [Quit: WeeChat 1.1.1]
awe00 has joined #linux-sunxi
<viccuad> Guys, if people ask you "Doesn't allwinner require blobs to boot"? what would you answer?
<viccuad> I'm talking about an Olinuxino Lime, so with U-Boot and mainline Kernel should be good enough
<lukas2511> first stage bootloader is a blob inside the soc itself, not sure if that counts
<jackdaniel> viccuad: it doesn't, u-boot handles it
<jackdaniel> I'd say brom is more a firmware then bootloader
dev1990 has joined #linux-sunxi
<viccuad> jackdaniel: lukas2511: thanks guys
khuey|away is now known as khuey
awe00 has quit [Ping timeout: 252 seconds]
paulk-aldrin has joined #linux-sunxi
vetkat has quit [Quit: Bye bye]
<bbrezillon> jackdaniel: Hi
<bbrezillon> good to know someone is working on NAND support in u-boot
paulk-collins has joined #linux-sunxi
<jackdaniel> :-)
<jackdaniel> hi
<bbrezillon> and also good to know someone else managed to flash a BROM :-)
<bbrezillon> I did it a while ago
<bbrezillon> I couldn't remember all the things I had to do when RSpliet asked some help a few days ago
<jackdaniel> you mean someone replaced brom on SoC?
<bbrezillon> oh sorry, not BROM
<bbrezillon> SPL
<jackdaniel> ok
<bbrezillon> jackdaniel: what's the status of your u-boot driver BTW ?
paulk-collins_ has joined #linux-sunxi
<jackdaniel> bbrezillon: it can read
<jackdaniel> from nand
<jackdaniel> sorry, I'm cooking right now and short on hand (if it's common idiom in english)
paulk-collins_ has quit [Remote host closed the connection]
<jackdaniel> both from syndrom and normal partitions
<jackdaniel> it utilizes dma
khuey has quit [Ping timeout: 265 seconds]
<jackdaniel> so I'm succesfully booting linux from nand (w/o mmc)
paulk-collins has quit [Ping timeout: 250 seconds]
<jackdaniel> but it's pretty raw now
<bbrezillon> jackdaniel: okay, I had a quick look at your sunxi-nand branch
<bbrezillon> you focused on SPL support, right
<jackdaniel> yes
<bbrezillon> I was about to point you to Yassin's work, but you were in Cc of our mails :-)
<jackdaniel> at what address and when? I've recently changed mail address and old company doesn't seem to forward anything to me
<bbrezillon> jackdaniel: here is the subject "[linux-sunxi] [UBOOT NAND] [PATCH 0/4] Add nand reading support to u-boot"
flyhorse has quit [Read error: Connection reset by peer]
<bbrezillon> it was back in January
flyhorse has joined #linux-sunxi
<bbrezillon> jackdaniel: and it was sent to "Daniel Kochmański <dkochmanski@antmicro.com>"
<bbrezillon> here is Yassin's github in case you don't find this email => https://github.com/yassinjaffer/u-boot/commits/sunxi-nand
<jackdaniel> yes, I saw this and I have these mails
<jackdaniel> this address isn't actual tough
<jackdaniel> I've found Yassin's work hard to put in spl
khuey has joined #linux-sunxi
<bbrezillon> it's not meant to be included in the SPL
<bbrezillon> but maybe we could share bits between the SPL and the full implementation
fucxy has joined #linux-sunxi
<bbrezillon> If I'm correct, this is how other platforms are doing
<jackdaniel> yes, but as far as I understand this driver programms nand directly
<jackdaniel> and it's ortoghonal to dma interface, which handles it by itself
<bbrezillon> do you really need DMA ?
lukas2511 has quit [Ping timeout: 276 seconds]
fest has quit [Ping timeout: 276 seconds]
lukas2511 has joined #linux-sunxi
fest has joined #linux-sunxi
<bbrezillon> or maybe you're using because it's simpler, and thus requires less code
<jackdaniel> basically is what this driver is, it doesn't know anything about nand, programms only address, randomization, ram base etc, and says: get it
<jackdaniel> s/is/it is/
heffer has quit [Remote host closed the connection]
heffer has joined #linux-sunxi
bonbons has joined #linux-sunxi
flyhorse_YqdtO has joined #linux-sunxi
flyhorse has quit [Read error: Connection reset by peer]
afaerber_ has joined #linux-sunxi
awe00 has joined #linux-sunxi
afaerber has quit [Ping timeout: 272 seconds]
domidumont has joined #linux-sunxi
domidumont has joined #linux-sunxi
awe00 has quit [Ping timeout: 272 seconds]
specing is now known as angry_specing
flyhorse has joined #linux-sunxi
flyhorse has quit [Read error: Connection reset by peer]
flyhorse has joined #linux-sunxi
flyhorse_YqdtO has quit [Ping timeout: 240 seconds]
philippe_fouquet has quit [Remote host closed the connection]
Netlynx has joined #linux-sunxi
Netlynx has joined #linux-sunxi
lemonzest has quit [Ping timeout: 276 seconds]
lemonzest has joined #linux-sunxi
flyhorse_COUCV has joined #linux-sunxi
flyhorse has quit [Read error: Connection reset by peer]
physis has quit [Remote host closed the connection]
flyhorse has joined #linux-sunxi
flyhorse_COUCV has quit [Read error: Connection reset by peer]
vetkat has joined #linux-sunxi
arossdotme has quit [Ping timeout: 264 seconds]
Netlynx has quit [Quit: Leaving]
arossdotme has joined #linux-sunxi
mrnuke has quit [Remote host closed the connection]
mrnuke has joined #linux-sunxi
iamfrankenstein has joined #linux-sunxi
physis has joined #linux-sunxi
iamfrankenstein has quit [Quit: iamfrankenstein]
flyhorse_BYZhl has joined #linux-sunxi
flyhorse has quit [Read error: Connection reset by peer]
paulk-aldrin has quit [Remote host closed the connection]
iamfrankenstein has joined #linux-sunxi
iamfrankenstein has quit [Client Quit]
domidumont has quit [Ping timeout: 246 seconds]
lemonzest has quit [Quit: Leaving]
bonbons has quit [Quit: Leaving]
sehraf has quit [Read error: Connection reset by peer]
Andy_D has quit [Ping timeout: 244 seconds]
fredy has quit [Excess Flood]
lerc has quit [Ping timeout: 272 seconds]
fredy has joined #linux-sunxi
Andy_D has joined #linux-sunxi
akaizen has quit [Remote host closed the connection]
iamfrankenstein has joined #linux-sunxi
lerc has joined #linux-sunxi
Renard has quit [Ping timeout: 256 seconds]
awe00 has joined #linux-sunxi
sdschulze has quit [Ping timeout: 252 seconds]
cajg_ has joined #linux-sunxi
cajg has quit [Ping timeout: 276 seconds]
cajg_ has quit [Quit: good night]
naobsd has quit [Quit: naobsd]
iamfrankenstein has quit [Quit: iamfrankenstein]
awe00 has quit [Ping timeout: 256 seconds]
akaizen has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]