mnemoc 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
petr has quit [Ping timeout: 272 seconds]
MackBoy has quit [Ping timeout: 250 seconds]
F1skr has quit [Quit: WeeChat 1.0.1]
petr has joined #linux-sunxi
Gerwin_J has joined #linux-sunxi
doppo has joined #linux-sunxi
doppo has quit [Quit: leaving]
physis has quit [Remote host closed the connection]
naobsd has joined #linux-sunxi
doppo has joined #linux-sunxi
wenbin has joined #linux-sunxi
Renard has quit [Remote host closed the connection]
alexxy has quit [Ping timeout: 265 seconds]
alexxy has joined #linux-sunxi
Andy-D has quit [Quit: Alive/Dead]
arokux2 has quit [Ping timeout: 260 seconds]
HeavyMetal has quit [Ping timeout: 272 seconds]
atsampso1 has quit [Ping timeout: 265 seconds]
arokux2 has joined #linux-sunxi
skaag has joined #linux-sunxi
skaag1 has quit [Read error: Connection reset by peer]
atsampson has joined #linux-sunxi
rafaelMOD has quit [Quit: Leaving]
HeavyMetal has joined #linux-sunxi
skaag has quit [Ping timeout: 265 seconds]
megal0maniac has quit [Ping timeout: 256 seconds]
megal0maniac has joined #linux-sunxi
skaag has joined #linux-sunxi
egbert has quit [Disconnected by services]
egbert has joined #linux-sunxi
popolon has quit [Quit: WeeChat 1.0.1]
petr has quit [Ping timeout: 265 seconds]
skaag has quit [Quit: Leaving.]
petr has joined #linux-sunxi
egbert has quit [Disconnected by services]
egbert has joined #linux-sunxi
mmarker has quit [Ping timeout: 250 seconds]
skaag has joined #linux-sunxi
TheSeven has quit [Disconnected by services]
[7] has joined #linux-sunxi
lynxis has quit [Remote host closed the connection]
bluse has quit [Remote host closed the connection]
lynxis has joined #linux-sunxi
bluse has joined #linux-sunxi
Faisal has quit [Ping timeout: 255 seconds]
JohnDoe_71Rus has joined #linux-sunxi
amitk has joined #linux-sunxi
hipboi has quit [Ping timeout: 255 seconds]
hipboi has joined #linux-sunxi
hipboi_ has joined #linux-sunxi
hipboi has quit [Ping timeout: 256 seconds]
zeRez has joined #linux-sunxi
HeHoPMaJIeH has joined #linux-sunxi
HeHoPMaJIeH has joined #linux-sunxi
sehraf has joined #linux-sunxi
philippe_fouquet has joined #linux-sunxi
philippe_fouquet has quit [Read error: Connection reset by peer]
philippe_fouquet has joined #linux-sunxi
Faisal has joined #linux-sunxi
skaag has quit [Quit: Leaving.]
skaag has joined #linux-sunxi
paulk-aldrin has joined #linux-sunxi
Faisal has quit [Read error: Connection reset by peer]
skaag has quit [Client Quit]
skaag has joined #linux-sunxi
dlan has quit [Ping timeout: 260 seconds]
dlan has joined #linux-sunxi
skaag has quit [Client Quit]
skaag has joined #linux-sunxi
arokux2 has quit [Remote host closed the connection]
rz2k_ has joined #linux-sunxi
_massi has joined #linux-sunxi
wenbin has quit [Quit: Leaving]
diego_r has joined #linux-sunxi
hipboi_ has quit [Ping timeout: 256 seconds]
hipboi_ has joined #linux-sunxi
Deskwizard has quit [Ping timeout: 244 seconds]
<topi`> I tried to flash the boot0_sdcard.bin from A31 SDK to a sdcard, but it seems it's not working:
<topi`> boot0 capacity: 0KB,boot1 capacity: 0KB
<topi`> boot0 magic = eGON.BT0?x-?
<topi`> boot0 addsum error
<topi`> does the magic look correct? it seems to have some garbage chracters on it. Maybe I got the offsets wrong?
<topi`> any A31 users here? how did you flash the SD card? I'm just following the instructions in linux-sunxi.org/Bootable_SD_Card
<topi`> I guess that is generic guide, and not A31 specific
Deskwizard has joined #linux-sunxi
Gerwin_J has quit [Quit: Gerwin_J]
alexxy has quit [Quit: No Ping reply in 180 seconds.]
alexxy has joined #linux-sunxi
MY123 has joined #linux-sunxi
astr has quit [Ping timeout: 265 seconds]
astr has joined #linux-sunxi
<hno> topi`, that page is for linux-sunxi u-boot, and do not support A31.
leviathanch2 has joined #linux-sunxi
leviathanch2 has quit [Ping timeout: 240 seconds]
Akagi201 has quit []
leviathanch2 has joined #linux-sunxi
<topi`> hno: any suggestions as of how to proceed with booting A31?
enrico_ has joined #linux-sunxi
<topi`> so far I haven't found any good documentation
<topi`> or if there is, it is in chinese.
codekipper has joined #linux-sunxi
sehraf has quit [Read error: Connection reset by peer]
<codekipper> topi`: Hi, been following your progress...have you tried http://free-electrons.com/~maxime/pub/a31-sdcard.img
<codekipper> I think wens used this on his hummingboard, however it's mainline
<codekipper> I've made a build of the sdk which i could share...I've never tested it though...everytime I insert my serial connection on my Mele I7 it refuses to boot
<mripard> codekipper: don't use that SD image on any board but the colombus one.
leviathanch2 has quit [Ping timeout: 265 seconds]
<codekipper> mripard: was expecting that response....
<codekipper> I couldn't decontruct it using imgrepacker...how did you put it together?
<mripard> I didn't
<mripard> I just got a binary image iirc
<codekipper> I think wens ran it successfully on his board.
<codekipper> I know you were worried about axp setup
<mripard> yeah, I just happen to work
<codekipper> topi`: use at your own risk
<mripard> it doesn't mean that you won't fry your board using it.
<topi`> question about the Allwinner A31 SDK... does it work? I mean, does it produce a working kernel :)
<topi`> the kernel is old, but I successfully compiled it and that can be used as a starting point towards a usable system
<topi`> our aim is to eventually support Xen virtualization on the Merrii A31 board (we'll see how well that goes)
philippe_fouquet has quit [Remote host closed the connection]
<mripard> then don't use allwinner's sdk.
<mripard> it doesn't support any kind of virtualization
philippe_fouquet has joined #linux-sunxi
<topi`> eventually I would go and try the 3.17 mainline kernel, it has some A31 support
ninolein has quit [Ping timeout: 244 seconds]
<topi`> supposedly the SDK supplied 2011/09 UBOOT is new enough to be able to load 3.17 kernels?
ninolein has joined #linux-sunxi
<mripard> it doesn't have DT support, but it can boot a new kernel
philippe_fouquet has quit [Read error: No route to host]
<topi`> what is DT?
<mripard> device tree
<topi`> isn't that a major bummer?
<topi`> the DT is used to configuring pretty much every arm device at boot time
<mripard> no, there's some support in the kernel to workaround old bootloaders
<topi`> oh...
<mripard> you just have to append the DT image to the kernel image, and that's it
<mripard> this is what we do to work on the A31
<topi`> hehe, sounds...hacky
tomboy65 has quit [Ping timeout: 246 seconds]
<mripard> well, it's a workaround
<topi`> I have this file: boot0_sdcard_sun6i.bin
<topi`> I tried to put that (at offset 8k) to a SD card but it doesn't seem to work
<topi`> is it the correct file anyways?
<topi`> and what's the difference between boot0/boot1?
<mripard> it shuold be the correct file
<mripard> the same difference than between SPL and u-boot
<topi`> how does the BOOT0 know where to look for the U-BOOT?
<mripard> boot0 initialises the RAM, loads boot1, executes it
<topi`> since you can either place u-boot at offset 32k or 40k
<topi`> ok, so I need *both* BOOT0 and BOOT1??
<mripard> it's boot1 that loads and execute u-boot
<mripard> yes
<topi`> darn
philippe_fouquet has joined #linux-sunxi
<topi`> the Bootable_SD_Card page talks about "spl/sunxi-spl.bin", how do I make that out of boot0/boot1 files?
<topi`> if SPL is the sum of boot0 and boot1?
<mripard> you were told several time that this page doesn't apply in your case.
<mripard> stop refering to it.
<topi`> ok...
<topi`> how do I find out the correct offsets on the SD card then?
GeertJohan has left #linux-sunxi ["bye"]
popolon has joined #linux-sunxi
sehraf has joined #linux-sunxi
<mripard> it's 8k for boot0
<topi`> and where should I place boot1 then?
<mripard> I don't know, I think I looked into boot0 code last time I tried doing that
<topi`> so, how do you boot the A31 then?
<topi`> maybe I should scan the NAND on the board and try to find some hints from it...
<mripard> I just use fastboot
<topi`> oh, does fastboot work?
<mripard> and use allwinner's bootloaders
<mripard> yep
<topi`> right.
<topi`> I only have fastboot experience from a few years back, when we were hacking the Toshiba AC100
<topi`> it was a Tegra 2 device
<mripard> just boot the thing, use either adb or your uart
<mripard> and type reboot bootloader
<topi`> yeah
<mripard> and fastboot will start at reboot
<topi`> do you have any idea what's needed to add SPL support to linux-sunxi's U-Boot?
<mripard> someone figuring out the memory initialization
<topi`> then I'd need to have a JTAG debugger :)
<mripard> and given how the A31 boot process, someone figuring out how to flash the SPL to the NAND
nicksydney has quit [Ping timeout: 244 seconds]
dantob has joined #linux-sunxi
dantob has quit [Client Quit]
Net147 has joined #linux-sunxi
astr has quit [Ping timeout: 240 seconds]
<topi`> it seems that my Merrii A31 board boots with U-Boot, not fastboot
<topi`> and the U-Boot is on the onboard NAND
<topi`> I get this on the console:
<topi`> U-Boot 2011.09-rc1 (Jun 17 2014 - 17:30:56) Allwinner Technology
<MY123> mripard: Is there a fastboot for A20?
nicksydney has joined #linux-sunxi
astr has joined #linux-sunxi
afaerber has quit [Quit: Verlassend]
afaerber has joined #linux-sunxi
doppo has quit [Remote host closed the connection]
doppo has joined #linux-sunxi
<mripard> MY123: with allwinner's bootloader, i don't see why not
<mripard> but I haven't looked into it either
<mripard> topi`: fastboot is a protocol, not a bootloader
<topi`> oh
<topi`> so, you can hack U-BOOT to support the fastboot protocol?
<mripard> yes
<mripard> and it's actually what they did
leviathanch2 has joined #linux-sunxi
nicksydney_ has joined #linux-sunxi
nicksydney has quit [Ping timeout: 258 seconds]
leviathanch2 has quit [Client Quit]
leviathanch2 has joined #linux-sunxi
leviathanch2 has quit [Ping timeout: 245 seconds]
<topi`> mripard: do you know of anyone who has successfully booted own U-Boot on the A31?
<topi`> apparently the lack of SPL is the biggest blocker for custom U-Boot
<codekipper> topi`: have you got any a31 image files.
<topi`> codekipper: one .img file (300M) came with the SDK
<codekipper> have you ran it through imgRePacker?
<topi`> what's that?
<codekipper> I've done this with the img for my mele i7 and the image that I built from the sdk
<topi`> hm, this .img file starts with a "IMAGE" magic... so maybe it's not something you write to the SD card.
<codekipper> 2secs...I'll find the link
<codekipper> It's mentioned here http://sunxi.org/PhoenixCard but I use it for extracting fex files from vendor build images
<topi`> what is a .fex file?
<codekipper> it generates all the information for reconscructing the image.
<codekipper> topi`: you should have a deep look at the wiki...it's pretty well explained
<topi`> ok
<topi`> so this Phoenix software eats those .fex files?
<topi`> are there any non-proprietary alternatives?
<topi`> I'm not allowed to install non-certified software to my corporate windows machine.
<topi`> the linux inside virtual machine does not count :)
<codekipper> confusingly it gives everything that it extracts a fex extension....the fex file I refer to is sys_config.fex
<codekipper> looking at the a31 image I've unpacked there is are quite a few interesting files...image.cfg, sys_partition.fex and cardscript.fex
<topi`> hm, I need this fex2bin tool
<topi`> is that sys_partition something android related?
<codekipper> the imgRePacker I guess uses it to create an img.
<codekipper> it's showing the nand partitions
<codekipper> cardscript.fex shows boot0 and boot1 offsets
JohnDoe_71Rus has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<MY123> topi`: Avoid imgrepacker like the plague ( malware inside with McAfee)
<MY123> if you care about your PC
<topi`> yeah, everything's infected nowadays
<MY123> topi`: For the Linux VM, Wine :-)
<topi`> why can't they create image packing tools in reasonable languages, say, python
<codekipper> topi`: I use it from the command line in ubuntu
<topi`> funny, I can't find boot1.bin at all in the A31 SDK tree
<topi`> boot0.bin is there
<topi`> boot1.bin is only in sun4i subdirectory
doppo has quit [Remote host closed the connection]
doppo has joined #linux-sunxi
<MY123> topi`: Allwinner SDK is bullshit with lots of GPL violations, at least for A*)
<MY123> 80
<topi`> hmm, I did find this
<topi`> ./boot-v1.0/boot/pack/chips/sun6i/boot/boot1_sdcard.bin
<topi`> maybe it'll work
leviathanch2 has joined #linux-sunxi
<MY123> topi`: Is there source code?
<topi`> not sure, I'll check that
<topi`> it's difficult to say from what src the binary is built
<codekipper> according to cardscript.fex boot1 is uboot
<codekipper> let me check the image I've created
<codekipper> same
<topi`> so, let's see. I flashed boot0.img to offset 8k and boot1.img offset 40k
<topi`> I also modified the boot0 messages a little, just to see that it's my code that's executring
<topi`> the HELLO message did not contain my customization. So it's not my code that gets executed :(
<topi`> I would need to see the Merrii board schematics to be certain of the boot order
<topi`> the A31 user's manual does describe the boot order, but I need to see the schema
<topi`> it seems the source code from where the boot0 that shipped, is built, is nowhere to be found in the SDK
<topi`> I grepped recursirvely for "Jump to secend Boot.
<topi`> it is found in the .bin files, but nowhere in actual source code
afaerber has quit [Quit: Verlassend]
ogi has joined #linux-sunxi
afaerber has joined #linux-sunxi
ricardocrudo has joined #linux-sunxi
diego71_ has joined #linux-sunxi
diego71 has quit [Ping timeout: 240 seconds]
zumbi_ has quit [Ping timeout: 265 seconds]
gjm has quit [Ping timeout: 265 seconds]
lioka has quit [Ping timeout: 265 seconds]
alexxy has quit [Read error: Connection reset by peer]
zumbi has joined #linux-sunxi
gjm has joined #linux-sunxi
alexxy has joined #linux-sunxi
rafaelMOD has joined #linux-sunxi
FunkyPenguin has quit [Ping timeout: 244 seconds]
FunkyPenguin has joined #linux-sunxi
Black_Horseman has quit [Remote host closed the connection]
<hno> topi`, a31 boot code is not shipped in the SDK.
<hno> and, to boot from SD you need to hold the uboot button.
<hno> also, the boot0.bin file needs to have correct checksum and right DRAM information for the board in question or it will fail.
<hno> if you do not hold uboot button then the board will default to boot from NAND.
lioka has joined #linux-sunxi
<hno> MY123, There is not much GPL violation to speak of regarding boot0.bin, or eGON version of boot1.bin. u-boot version of boot1.bin is another story..
Quarx has joined #linux-sunxi
<topi`> hno: ok, that explains why it froze when I tried modifying the uboot0 binary.
<topi`> need to recalc the checksum!
<hno> topi`, there is a tool in the SDK for applying DRAM information and calculating the checksum.
<hno> But I am not sure if it accepts input files with bad checksum.
Quarx has quit [Ping timeout: 250 seconds]
rafaelMOD has quit [Ping timeout: 250 seconds]
<hno> If it doesn't then this may help: https://gist.github.com/hno/dae626bc7765dcad2dae
naobsd has quit [Quit: Page closed]
<hno> It doesn't freeze due to bad checksum. But you likely end up in FEL boot recovery mode (USB).
Quarx has joined #linux-sunxi
<hno> Any boot source with bad checksum is ignored.
<topi`> this is odd. if I write the boot0 (32KB) to the mmcblk0, with a skip=8 bs=1k, I end up with a non-detected SD card. I.e. it has no MBR partitions.
<topi`> how can it be? AFAIK the MBR partitioning is kept on the very first sector (i.e. 512 bytes)
pwhalen has quit [Ping timeout: 256 seconds]
rafaelMOD has joined #linux-sunxi
<topi`> hno: do you think the sun6i boot code works in the same way as sun4i wrt the checksum?
<hno> topi`, it does.
<topi`> ok.
<hno> at least in principle. Haven't 100% verified that all details is the same.
<hno> but 99.9% sure.
<topi`> what's the length, generally?
<topi`> on hexdump, I see it's 8000 0000
<topi`> does that mean (in LSB byte order), 00 00 00 80 ?
<topi`> but this is just 128 bytes?
pwhalen has joined #linux-sunxi
leviathanch2 has quit [Ping timeout: 264 seconds]
<topi`> hno: are you the same guy who works on squid?
_massi has quit [Ping timeout: 255 seconds]
<hno> topi`, yes.
<topi`> hno: I've been trying to get squid working as a child proxy, but in vain :)
<topi`> there's plenty of doc there, but I still don't get it right. Maybe I'm in the wrong type of business...
<hno> topi`, all fields are in CPU order (LSB).
FR^2 has joined #linux-sunxi
<hno> topi`, see never_direct and cache_peer options. But that question is better asked in #squid
<topi`> hno: I'll do that
<topi`> hno: is the "length" field really the length of the header, and not the whole binary blob?
<topi`> since 0x80 bytes is just 128 bytes
<hno> there is several length fields.
<topi`> but your code is using that length field to see how many bytes it needs to traverse in order to calculate the checksum
<hno> total blob. header, second header, and maybe some more.
<topi`> maybe I'm misinterpreting the output of od -x
<topi`> i printf()'d it and it seems it's 32K
<topi`> so ignore my question
<topi`> hno: what kind of A31 board do you have?
<hno> none.
<topi`> oh...
<topi`> so, you work on another Axx device?
<hno> only a10, a20, a13, a10s, a80.
<topi`> does the a80 share some internals with the a31?
<hno> some
<topi`> my guess is the A31 is newer than A10 or A20
<hno> a31 is older than a20, but different.
<topi`> yeah the A31 seems to be the bastard child
<hno> they all are.
<hno> but most is known about a10, a13 and a20. They are all very similar. The others differ in key parts such as DRAM, Video and USB.
<hno> sorry, a10s is also in that same group.
<hno> very similar to a13.
Net147 has quit [Quit: HydraIRC -> http://www.hydrairc.com <- The professional IRC Client :D]
<topi`> hmm, some of these .fex files seem to be just ASCII files
<topi`> the really disappointing part about the A31 SDK is how everything lacks organisation
_massi has joined #linux-sunxi
<topi`> sys_config.fex inside a sun6i directory is actually for evb_v12 machine, which is a A20 device...
<topi`> sheesh
pwhalen has quit [Ping timeout: 250 seconds]
gjm has quit [Changing host]
gjm has joined #linux-sunxi
<codekipper> topi`: the SDK that I built has evb V100 and A31 in the sys_config.fex.
<topi`> it seems the way to build the SDK kernel is to use the build.sh script... but it uses some obsolete, unsupported switches like --min-array-alignment
<topi`> which make my gcc 4.8 based linaro compiler die
<topi`> codekipper: ok, then we have different SDKs
<codekipper> I'm sure I'm downloaded it from here http://dl.linux-sunxi.org/SDK/A31/a31_v4.5_hummingbird_kfb_ok.tar.gz
<topi`> I didn't take the kfb_ok one, but the stripped one on the top
<codekipper> and I documented it here https://linux-sunxi.org/SDK_build_howto_A31
<topi`> damn, that one is 6 GB in size
<codekipper> but seriously good luck with this....I've started trying the merge the code into my sunxi-linux track
<topi`> thanks for demystifying the contents of the SDK
<codekipper> It's easier for me to merge monkey than to get on the hardware to test
pwhalen has joined #linux-sunxi
<codekipper> yep that's definitely the SDK I used.
tomboy65 has joined #linux-sunxi
FunkyPenguin has quit [Ping timeout: 255 seconds]
FunkyPenguin has joined #linux-sunxi
FunkyPenguin has quit [Ping timeout: 264 seconds]
FunkyPenguin has joined #linux-sunxi
xavia has joined #linux-sunxi
pwhalen has quit [Ping timeout: 250 seconds]
FunkyPenguin has quit [Ping timeout: 244 seconds]
FunkyPenguin has joined #linux-sunxi
FunkyPenguin has quit [Ping timeout: 265 seconds]
FunkyPenguin has joined #linux-sunxi
pwhalen has joined #linux-sunxi
FunkyPenguin has quit [Ping timeout: 240 seconds]
HeHoPMaJIeH has quit [Quit: Konversation terminated!]
<hno> topi`, the 6GB one includes toolchain & android. The stripped one is only base system sources & tools.
FunkyPenguin has joined #linux-sunxi
<rafaelMOD> guys, how is uboot support on sunxi-uboot for nand boot on A20 Should i stay with lichee for nand boot or is there any sunxi uboot branch nand boot working?
philippe_fouquet has quit [Remote host closed the connection]
dack has joined #linux-sunxi
philippe_fouquet has joined #linux-sunxi
naobsd has joined #linux-sunxi
<hno> rafaelMOD, the Allwinner NAND drivers are such a bit mess that we have no plans on merging any version of them. Have to keep some sanity.
<hno> plus their support on the NAND controller is negative, giving out less and less information, and no longer any sources.
Quarx has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<wens> mripard: could you also merge rc2 into sunxi-next (for sun6i wdt)
<MY123> hno: Do you have an a31 and a80 libnand tree?
<mripard> wens: yep
<hno> MY123, I have binary blobs...
<wens> i'll send a new version of the peripherals series tomorrow
<mripard> wens: done
<MY123> hno: Is there a clear usage license?( for RE)
<MY123> There is no info, at least Linux side
<rafaelMOD> hno: thanks.
<rafaelMOD> wens: did you get the A23_TABLET_STD eval board pdf?
leviathanch2 has joined #linux-sunxi
<wens> not yet
<wens> and that requires credits
<wens> might need more throwaway accounts :/
<rafaelMOD> wens: i tryed many times without success, no chinese skills
philippe_fouquet has quit [Remote host closed the connection]
hramrach_ has quit [Write error: Connection reset by peer]
tomboy65 has quit [Write error: Broken pipe]
tomboy65 has joined #linux-sunxi
hramrach_ has joined #linux-sunxi
<ricardocrudo> is the http://linux-sunxi.org/Installing_to_NAND tutorial assuming a device with a working NAND system?
<ricardocrudo> like a tablet for example
<dack> ricardocrudo: huh?
Quarx has joined #linux-sunxi
pwhalen has quit [Ping timeout: 265 seconds]
<ricardocrudo> dack: I'd like to know if this tutorial will work to a core board like Marsboard A20, where the NAND flash has no data
<dack> ricardocrudo: oh, you mean a NAND that doesn't having a working OS on it already?
<dack> ricardocrudo: regardless, the libnand is still broken for A20 devices, so you'll only end up wrecking whatever is on the NAND (if anything)
<dack> ricardocrudo: you'd have to use the binary blob nand driver that comes with the Allwinner SDK to actually write to the NAND
<dack> ricardocrudo: yeah, that tutorial doesn't cover building your own boot0 partition, so you'd have to already have a bootable partition on the NAND to do what it's describing
pwhalen has joined #linux-sunxi
pwhalen has quit [Changing host]
pwhalen has joined #linux-sunxi
<ricardocrudo> dack: I see. And how to use this blob approach?
<ricardocrudo> dack: any doc?
<dack> ricardocrudo: no doc.. :) The blob is the binary driver needed to simply read and write to the NAND. You'd still need the boot0 portion already on the NAND.
<dack> ricardocrudo: the blob is to get the "/dev/nand" described in that tutorial
<dack> ricardocrudo: basically it'll be a _LOT_ of work to get it working off NAND for you... I haven't even tried using the blob to access my NAND on my devices, so I can't help you there either.
bonbons has joined #linux-sunxi
<ricardocrudo> dack: I can use Phoenix tool to first deploy and after that follow the tutorial, but in the mass production line this is impracticable...
pwhalen_ has joined #linux-sunxi
pwhalen has quit [Ping timeout: 250 seconds]
pwhalen_ has quit [Ping timeout: 264 seconds]
pwhalen has joined #linux-sunxi
sherpa has joined #linux-sunxi
sherpa has quit [Client Quit]
skaag has quit [Quit: Leaving.]
<dack> ricardocrudo: hmm.. there's tools to make an image for use with Phoenix tool. You could make an image that had everything you needed and flash each device with that tool. I don't know how you make those images, though.
sherpa has joined #linux-sunxi
<dack> ricardocrudo: what I did with cubieboard was write a script to take a zipped file system and put that on the NAND. You could make a bootable SDcard that on start up flashes a filesystem to the NAND. Again, you'd need a working driver for the NAND, though, that's not currently available in linux-sunxi
sherpa has quit [Client Quit]
<hno> MY123, and no NAND chip on my A80 device.
FR^2 has quit [Quit: Connection reset by peer]
<hno> MY123, there is never any clear usage licenses for RE.
Zboonet has joined #linux-sunxi
skaag has joined #linux-sunxi
<ricardocrudo> dack: a time ago I saw something about how to create this phoenix image, not easy to understand and poor documentation
Renard has joined #linux-sunxi
<MY123> hno: Broadcom permits that for RPi blobs 'for the purpose of using it on a Raspberry Pi device'
<ricardocrudo> dack: can I 'dd' a u-boot working partition to NAND booting by sdcard? i.e.: flash a board using the phoenix tool copy the u-boot partition and paste it to other board booting by sdcard
<hno> MY123, they permit redistribution, not re.
<hno> but Allwinner have very vague notion of licensing...
bertrik has joined #linux-sunxi
leviathanch2 has quit [Ping timeout: 245 seconds]
<hno> ricardocrudo, yes, if the nand FTL driver (Allwinner nand_sunxi) used in the kernel is compatible with boot0 that is installed in the nand boot blocks.
<hno> and you create a Allwinner NAND partition table etc as required by the version of boot0 installed in the nand boot blocks.
<hno> and you have a suitable boot1 that is compatible with the kernel driver.
<hno> we do have full sources of some A20 allwinner nand driver btw.
<hno> dack ^
skaag has quit [Quit: Leaving.]
hramrach_ has quit [Ping timeout: 246 seconds]
tomboy65 has quit [Ping timeout: 246 seconds]
afaerber has quit [Quit: Verlassend]
<dack> ricardocrudo: you can't 'dd' to the nand until you have a working driver so you'll see a /dev/nand device
<dack> ricardocrudo: but, yes, if you had the driver working, you can just dd copy between devices
<dack> hno: the full source is available for an older version... the current nand driver used by A20 devices is binary only and appears to be incompatible with the older one. Using the driver in the current linux-sunxi will either not work on a A20 device or end up breaking it
skaag has joined #linux-sunxi
skaag has quit [Max SendQ exceeded]
skaag has joined #linux-sunxi
diego_r has quit [Ping timeout: 255 seconds]
<ricardocrudo> dack: nice! I can see /dev/nand in my kernel booting by sdcard
<dack> ricardocrudo: what are you using as a driver? Just the built in sunxi-nand in linux-sunxi?
<ricardocrudo> dack: yes, I have SUNXI_NAND=y in my kernel config. built into the kernel (not module). I'm linux-sunxi 3.4.XX
amitk has quit [Quit: leaving]
<ricardocrudo> s/I'm linux/I'm using linux
<dack> k.. it may be working fine since there's either nothing on the NAND yet or it's formatted with the older format.
<dack> it seems someone is currently working on an updated NAND driver: https://groups.google.com/forum/#!topic/linux-sunxi/DW6lcIaHrbs
<ricardocrudo> dack: oww, great
<dack> libv: have you taken a look at Boris` contributions for a nand driver? (link above)
Faisal has joined #linux-sunxi
rafaelMOD has quit [Quit: Saindo]
_massi has quit [Remote host closed the connection]
<hno> dack, which of the older ones are you referring to?
<hno> the one in linux-sunxi, or the one for A20?
<dack> the driver in linux-sunxi in drivers/block/sunxi_nand/ . It works with A10, but not with newer A20 devices. I broke the image on one of my devices when I tried to use it. libv confirmed there was an issue
<dack> hno: ^
<hno> dack, there is also a source driver for A20. But not merged into linux-sunxi.
<dack> hno: Boris seems to be working on a mainline driver in drivers/mtd/nand/
<hno> yes, but that is also incompatible with Allwinner NAND format, all versions.
<dack> hno: I thought what was in linux-sunxi was the source driver, no?
<dack> hno: oh.. so Boris' won't work with the format on the AW nand's?
Quarx has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<dack> Anyone know the meaning of the "usb_controller_type" values in the fex? It seems to be undocumented in the wiki.
<dack> oh.. nvm.. I see it here in the source. I'm still unsure how to figure out what kind of controller a device has though. My FEX seems to be missing that value.
ricardocrudo has quit [Remote host closed the connection]
enrico_ has quit [Quit: Bye]
nabblet has joined #linux-sunxi
ogi has quit [Remote host closed the connection]
pwhalen has quit [Ping timeout: 256 seconds]
ricardocrudo has joined #linux-sunxi
MY123 has quit [Quit: Connection closed for inactivity]
pwhalen has joined #linux-sunxi
pwhalen has joined #linux-sunxi
nabblet has quit [Quit: leaving]
konradoo77 has joined #linux-sunxi
ricardocrudo has quit [Quit: Saindo]
deasy has joined #linux-sunxi
konradoo87 has joined #linux-sunxi
dack has quit [Remote host closed the connection]
konradoo77 has quit [Ping timeout: 244 seconds]
konradoo87 has quit [Ping timeout: 244 seconds]
FunkyPenguin has quit [Ping timeout: 256 seconds]
FunkyPenguin has joined #linux-sunxi
pwhalen has quit [Ping timeout: 265 seconds]
bonbons has quit [Quit: Leaving]
pwhalen has joined #linux-sunxi
xavia has quit [Remote host closed the connection]
Black_Horseman has joined #linux-sunxi
bertrik has quit [Remote host closed the connection]
petr has quit [Ping timeout: 255 seconds]
paulk-aldrin has quit [Quit: Ex-Chat]
afaerber has joined #linux-sunxi
sehraf has quit [Quit: www.miranda-fusion.de ... be part of it...]
hramrach_ has joined #linux-sunxi