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
ssvb has joined #linux-sunxi
dev1990 has quit [Quit: Konversation terminated!]
<ssvb> libv: regarding your devices list, would you have time to try http://linux-sunxi.org/Talk:ICOU_Fatty_I#Test_branch_for_LCD_support_in_u-boot ?
<ssvb> Inode: was script-extractor useful for you?
<libv> ssvb: sorry, nope, not yet
<libv> i just had time to dig through my pile of devices while re-installing my gfs laptop
<libv> ssvb: but thanks for adding that
* libv is hopelessly behind with many many things
<ssvb> libv: well, it should be rather simple: clone the repository, compile and try to boot on the device
<ssvb> libv: but if it does not work out of the box, then fixing it properly may indeed take more time
AlexDaniel has quit [Ping timeout: 272 seconds]
ninolein has quit [Ping timeout: 246 seconds]
ninolein has joined #linux-sunxi
egbert_ has joined #linux-sunxi
egbert has quit [Disconnected by services]
viccuad has quit [Ping timeout: 244 seconds]
TheSeven has quit [Disconnected by services]
[7] has joined #linux-sunxi
tomcheng76 has quit [Read error: Connection reset by peer]
tomcheng76 has joined #linux-sunxi
akaizen has joined #linux-sunxi
lerc has quit [Ping timeout: 250 seconds]
Igorpec4 has joined #linux-sunxi
lemonzest has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
JohnDoe6 has joined #linux-sunxi
JohnDoe_71Rus has quit [Changing host]
JohnDoe_71Rus has joined #linux-sunxi
gzamboni has joined #linux-sunxi
gzamboni_ has joined #linux-sunxi
gzamboni has quit [Ping timeout: 250 seconds]
orly_owl has quit [Read error: Connection reset by peer]
orly_owl has joined #linux-sunxi
Gerwin_J has joined #linux-sunxi
gzamboni_ is now known as gzamboni
NielsStaplebee has quit [Ping timeout: 240 seconds]
philectro has joined #linux-sunxi
NielsStaplebee has joined #linux-sunxi
ZbooNet has quit [Quit: Leaving]
lerc has joined #linux-sunxi
jinzo has joined #linux-sunxi
nicksydney has quit [Remote host closed the connection]
Igorpec4 has quit [Ping timeout: 264 seconds]
fredy has quit [Excess Flood]
fredy has joined #linux-sunxi
cubeast has joined #linux-sunxi
paulk-aldrin has joined #linux-sunxi
f15h has joined #linux-sunxi
<Inode> ssvb: i haven't built it yet, i will do it today sometime
Igorpec4 has joined #linux-sunxi
f15h has quit [Quit: Leaving]
bonbons has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
pmattern has joined #linux-sunxi
dev1990 has joined #linux-sunxi
viccuad has joined #linux-sunxi
FDCX has quit [Read error: Connection reset by peer]
FDCX has joined #linux-sunxi
philectro has quit [Quit: Konversation terminated!]
Sunxjuhs has joined #linux-sunxi
cnxsoft has quit [Ping timeout: 252 seconds]
Sunxjuhs has quit [Ping timeout: 246 seconds]
cnxsoft has joined #linux-sunxi
FDCX has quit [Read error: Connection reset by peer]
oliv3r has quit [Ping timeout: 260 seconds]
NielsStaplebee has quit [Remote host closed the connection]
ZbooNet has joined #linux-sunxi
wens has quit [Read error: Connection reset by peer]
oliv3r has joined #linux-sunxi
wens has joined #linux-sunxi
FDCX has joined #linux-sunxi
oliv3r has quit [Ping timeout: 240 seconds]
oliv3r has joined #linux-sunxi
<Inode> hey, i think there's a bug in script_extractor.c
<jelle> Inode: there is
<jelle> Inode: I haven't gotten around submitting a patch
<Inode> sorry ignore that one
<Inode> this is what i meant... http://pastebin.com/vC792WQn
reinforce has joined #linux-sunxi
<Inode> so i rebuilt script_extractor with this applied: http://pastebin.com/XPRnQmiB
<jelle> makes sense
<Inode> so with this dodgy tablet, this is what happens: http://pastebin.com/PUj3PkCf
<jelle> prolly because of the last munmap iirc
<jelle> Inode: anyway is the fex file dumped?
<Inode> let me check what bin2fex has to say
<jelle> ;)
<Inode> i just wanted to find out if this segmentation fault is normal with other A?? SoCs
<Inode> i suspect that i had attempted to read beyond what i was permitted to?
<jelle> no clue
<jelle> Inode: I'd say just check if bin2fex works
<jelle> munmap(NULL, SCRIPT_SIZE);
<jelle> this doenst make much size if you use a command line argument :p
<Inode> - munmap(NULL, SCRIPT_SIZE);
<Inode> + munmap(NULL, size);
<Inode> that's what i have :)
<jelle> yeah
<jelle> I guess it should be munmap(addr, size);
<Inode> yes
<Inode> the for loop's termination condition was also reliant on i being less than SCRIPT_SIZE rather than size
Gerwin_J has quit [Ping timeout: 264 seconds]
<Inode> you're right jelle, munmap(addr, size) works
<jelle> yay
<jelle> time to get that in the github repo I'd say
<Inode> will you add it?
<jelle> Inode: I am not part of the sunxi project, so I can't
<Inode> ah ok
<jelle> not sure if they do PR's or just git send-email to the sunxi list?
<ssvb> jelle: git send-email to the sunxi list
<Inode> alright
<ssvb> with a [PATCH sunxi-tools] header
<Inode> bin2fex seemed to like the output of script_extractor
<jelle> hurray!
* jelle has to still get the userspace driver working for gls1860
<Inode> what is gls1860?
<jelle> touch input
<Inode> ok
Gerwin_J has joined #linux-sunxi
<Inode> do you make use of uinput to supply the events?
<ssvb> Inode, jelle: thanks for testing the script-extractor tool, oliv3r just directly pushed it to git without any review, so problems with it are not exactly unexpected ;)
<jelle> Inode: uhh, well therre is this userspace driver https://github.com/rastersoft/gsl1680
<jelle> ssvb: haha
<jelle> ssvb: yeah it just cost me some time to figure out why it segfaulted, since I thought maybe it was some memory protection thing from android
<jelle> actually really need to find a driver for the RDA5991 WiFi chip.. :(
<Inode> now, what about boot1.header
<Inode> do i need to reincarnate script_extractor as something that takes an arbitrary memory address and block size on the command line, mmap that, write it to stdout or file, then munmap?
<jelle> sorry don't know, I'm new to this ;)
<Inode> i think i'll just adjust SCRIPT_START and SCRIPT_SIZE to get boot1.header once off, and let someone else worry about that :)
Gerwin_J has quit [Ping timeout: 264 seconds]
<Inode> i have 0x82d0 bytes of 0xaa from 0x42400000 as boot1.header
Gerwin_J has joined #linux-sunxi
<ssvb> Inode: the script.bin data provides configuration for the kernel and lives in its own reserved area as can be seen in the allwinner kernel sources
<ssvb> Inode: where are you trying to read boot1.header from?
FDCX has quit [Ping timeout: 240 seconds]
<Inode> which sufficed for obtaining script.bin -> script.fex
<ssvb> Inode: did you obtain script.bin using FEL mode?
<Inode> no i didn't
<Inode> i used script_extractor
<ssvb> ok
<ssvb> patches and documentation fixes are welcome
<Inode> so i've then altered script_extractor (which reads from /dev/mem) temporarily to use 0x42400000 as SCRIPT_START and 0x82d0 as SCRIPT_SIZE
* ssvb does not even have any a23 hardware, so can't really help in testing this
Gerwin_J has quit [Ping timeout: 264 seconds]
<Inode> thanks for the advice in any case
<Inode> is there a memory map description available somewhere?
<ssvb> the hardware related memory map (the placement of the sram, dram, and various hardware registers) can be found in the documentation for your soc
<Inode> i need to find a better datasheet or something like a TRM then
<ssvb> the software related memory map (the reserved areas inside of dram for various things) can be found in the android kernel sources
<Inode> thanks
<ssvb> oh, there is no a23 directory there yet
<ssvb> you can also find the documentation links at http://linux-sunxi.org/A23
<Inode> the User Manual looks promising
Gerwin_J has joined #linux-sunxi
FDCX has joined #linux-sunxi
fredy has quit [Excess Flood]
fredy has joined #linux-sunxi
ssvb has quit [Ping timeout: 264 seconds]
cnxsoft has quit [Quit: cnxsoft]
Igorpec4 has quit [Ping timeout: 264 seconds]
Igorpec4 has joined #linux-sunxi
philectro has joined #linux-sunxi
Gerwin_J has quit [Ping timeout: 264 seconds]
Gerwin_J has joined #linux-sunxi
philectro has quit [Read error: Connection reset by peer]
philectro_ has joined #linux-sunxi
ssvb has joined #linux-sunxi
JohnDoe9 has joined #linux-sunxi
JohnDoe_71Rus has quit [Ping timeout: 246 seconds]
Lotsey has joined #linux-sunxi
<Inode> so according to http://linux-sunxi.org/A23, "There is no boot1 on A23. Boot0 directly loads U-boot." - i have dumped all of the nand partitions and searched onwards from 0xffff0000 (BROM according to the A23 User Manual) via /dev/mem
<Inode> i can find "eGON.BRM" and "eGON.BT0" but "eGON.BT1" is nowhere to be found - so do i proceed to building uboot?
Tim_LHUILLIER has joined #linux-sunxi
<Tim_LHUILLIER> Hi all,
<Tim_LHUILLIER> I work on Olimex A13-SOM and i would like to know if it's possible to add a e-mmc storage for to contain my debian ?
<ssvb> Inode: 0xffff0000 is the BROM address in memory, it contains the code which gets activated on reset
<ssvb> Inode: "eGON.BT0" is the magic signature from the boot0 or spl header, which is required to be present if you want the boot0 or spl code to be loaded from the sdcard or nand, recognized by the BROM and executed
<ssvb> Inode: what exactly do you want to achieve now?
<ssvb> Inode: FEX file is the board specific configuration data about the peripherals (different allwinner devices may have different peripherals on board, and they are all handled by the same kernel)
<ssvb> Inode: in the mainline kernel DTS serves the same purpose as FEX
<Lotsey> do you all pay attention to the sd block size (via flashbench discovery) and format it special with ext4 stride commands to get the most performance or is that not so important in your opinion??
<ssvb> Lotsey: some people do
<Inode> ssvb: i was searching for those three magic signatures to attempt to identify the boot headers that sunxi-tool's bootinfo checks for
<ssvb> Inode: these headers are a part of boot0 bootloader, they may be already overwritten by something else when the kernel is already running
<ssvb> Inode: I would suggest you to try dumping data from the 0x0 address
<Inode> this is why i was search through dumps of the /dev/block/nand[a-k]
<ssvb> ah, ok
<Lotsey> mh, because all downloadable images I can see are not really well fitting the modern sd cards block size
<ssvb> but I guess that the bootloader is likely stored in a hidden partition, which is not visible in Android
<ssvb> Lotsey: the first partition typically starts at the sector 2048 if it is created by fdisk, this is usually good enough
<ssvb> Lotsey: do you have some particular sd card image in mind and some particular brand of the sd card?
<ssvb> Inode: you could try the nand code from the mainline kernel (experimental branches) to dump the whole nand and search for this data
<ssvb> Inode: however why do you need to find it in the first place?
<Inode> i don't particularly need it, i was really just searching to see if a boot1 was at all present
<Lotsey> because in example samsung or transcend 64 gb cards have erase block sizes of 8 MB or today 16 MB. And the partition table at the beginning is mostly rewritten due to some file changes within the first 4, 8 or 16 MB. If an error occurs, the partition table is broken.
<Lotsey> thats why I found a few sites which prefer to use a bit more space at the beginning of a partition
<ssvb> Lotsey: have you also tried the F2FS file system?
domidumont has joined #linux-sunxi
FDCX has quit [Ping timeout: 240 seconds]
Tim_LHUILLIER has quit [Ping timeout: 240 seconds]
domidumont has quit [Remote host closed the connection]
domidumont has joined #linux-sunxi
<Lotsey> F2FS? No. that reminds me to this new FPIO file system I read some time ago
paulk-aldrin has quit [Remote host closed the connection]
<cubeast> any ideas how to boot an allwinner device off of a read-only media?
pmattern has quit [Remote host closed the connection]
ricardocrudo has joined #linux-sunxi
pmattern has joined #linux-sunxi
pmattern has quit [Remote host closed the connection]
pmattern has joined #linux-sunxi
FDCX has joined #linux-sunxi
<ssvb> cubeast: read-only media?
<cubeast> ssvb: yeah an equivalent to that of booting from a CD ROM on a PC where once you reboot all data is erased.
<cubeast> Can something like this be done with an allwinner board?
<cubeast> (SDHC card != read-only)
<ssvb> cubeast: do you have some other media in mind?
<ssvb> cubeast: also the kernel can be probably patched to artificially switch the mmc driver into read-only mode
<cubeast> I don't know, I'm asking for ideas. One thing I can think of is a USB CD-ROM device and the other is by attaching any USB mass storage device over a write-blocker.
<ssvb> cubeast: if you are really paranoid, you would need to protect the bootloader too
<cubeast> true
<NiteHawk> could external SPI-NOR be made read-only?
<cubeast> I could probably try to short the write-protect pin on the NAND flash...
Tim_LHUILLIER has joined #linux-sunxi
<ssvb> Tim_LHUILLIER: you can ask oliv3r about e-mmc storage, I think they have evaluated this option
Gerwin_J has quit [Read error: Connection reset by peer]
ricardocrudo has quit [Ping timeout: 240 seconds]
<Tim_LHUILLIER> ssvb: thanks you, i ask him in MP ?
<ssvb> Tim_LHUILLIER: I don't know what is MP, but if oliv3r is here in the irc chat and has a bit of time, then he could probably help you
<Tim_LHUILLIER> ssvb: sorry MP == DM (Direct Message) in french, i'm sorry ;)
<ssvb> Tim_LHUILLIER: here is the irc chat log with some older discussion - http://irclog.whitequark.org/linux-sunxi/2015-01-07#11407552
<Tim_LHUILLIER> ssvb: thanks you
<Tim_LHUILLIER> ssvb: here : https://wiki.debian.org/InstallingDebianOn/Allwinner#Storage_options it mentioned compatiblty MMC/SD card.
<Tim_LHUILLIER> so maybe if a13 is compatible with MMC card, it's compatible with emmc too
Gerwin_J has joined #linux-sunxi
afaerber__ has joined #linux-sunxi
afaerber_ has quit [Ping timeout: 268 seconds]
\\Mr_C\\ has joined #linux-sunxi
pmattern has quit [Remote host closed the connection]
pmattern has joined #linux-sunxi
JohnDoe9 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
pmattern has quit [Quit: Genug für heute.]
philectro_ has quit [Quit: Konversation terminated!]
philectro has joined #linux-sunxi
ZbooNet has quit [Remote host closed the connection]
domidumont has quit [Ping timeout: 246 seconds]
RSpliet has quit [Read error: Connection reset by peer]
RSpliet has joined #linux-sunxi
Tim_LHUI_ has joined #linux-sunxi
Tim_LHUILLIER has quit [Ping timeout: 240 seconds]
Gerwin_J has quit [Quit: Gerwin_J]
lemonzest has quit [Quit: Leaving]
bonbons has quit [Quit: Leaving]
Igorpec4 has quit [Ping timeout: 264 seconds]
cubeast has quit [Quit: Leaving]
Tim_LHUI_ has quit []
dev1990 has quit [Quit: Konversation terminated!]
Lotsey has quit [Quit: Leaving]
Herm has joined #linux-sunxi
jinzo has quit [Remote host closed the connection]
book` has quit [Ping timeout: 240 seconds]
book` has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
Igorpec4 has joined #linux-sunxi
Andy-D has quit [Ping timeout: 240 seconds]
arossdotme has quit [Ping timeout: 256 seconds]
Andy-D has joined #linux-sunxi