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
OverCR has quit [Quit: Leaving.]
paulk-collins has quit [Quit: Leaving]
perr has quit [Read error: Connection reset by peer]
perr has joined #linux-sunxi
perr has quit [Changing host]
perr has joined #linux-sunxi
TheSeven has joined #linux-sunxi
apritzel has quit [Ping timeout: 244 seconds]
Da_Coynul has joined #linux-sunxi
popolon has quit [Quit: WeeChat 1.4]
ninolein has quit [Ping timeout: 255 seconds]
ninolein has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
egbert has quit [Disconnected by services]
egbert has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
pg12 has quit [Ping timeout: 240 seconds]
pg12 has joined #linux-sunxi
Da_Coynul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_mamalala_ has joined #linux-sunxi
_mamalala has quit [Ping timeout: 260 seconds]
cnxsoft has quit [Ping timeout: 255 seconds]
cnxsoft has joined #linux-sunxi
perr has quit [Ping timeout: 244 seconds]
Nacho has quit [Remote host closed the connection]
Nacho has joined #linux-sunxi
IgorPec has joined #linux-sunxi
fire219[Bama] has quit [Read error: Connection reset by peer]
JohnDoe_71Rus has joined #linux-sunxi
_whitelogger has joined #linux-sunxi
Gerwin_J has joined #linux-sunxi
foxx_ has joined #linux-sunxi
netlynx has joined #linux-sunxi
IgorPec has quit [Ping timeout: 255 seconds]
petr has quit [Ping timeout: 255 seconds]
petr has joined #linux-sunxi
Amit_t_ has joined #linux-sunxi
jrg has quit [Quit: ZNC - http://znc.in]
jrg has joined #linux-sunxi
IgorPec has joined #linux-sunxi
mosterta has joined #linux-sunxi
ganbold has quit [Ping timeout: 255 seconds]
ganbold has joined #linux-sunxi
lemonzest has joined #linux-sunxi
mosterta has quit [Ping timeout: 244 seconds]
Putti has joined #linux-sunxi
OverCR has joined #linux-sunxi
kronicd_ has left #linux-sunxi [#linux-sunxi]
utente_ has quit [Ping timeout: 240 seconds]
jernej has joined #linux-sunxi
p_rossak has quit [Ping timeout: 250 seconds]
paulk-collins has joined #linux-sunxi
p_rossak has joined #linux-sunxi
iamfrankenstein has joined #linux-sunxi
mosterta has joined #linux-sunxi
jernej has quit [Ping timeout: 258 seconds]
jstein_ has joined #linux-sunxi
jstein_ is now known as jstein
iamfrankenstein has quit [Ping timeout: 250 seconds]
IgorPec has quit [Ping timeout: 252 seconds]
IgorPec has joined #linux-sunxi
souther has quit [Ping timeout: 260 seconds]
bonbons has joined #linux-sunxi
souther has joined #linux-sunxi
perr has joined #linux-sunxi
jernej has joined #linux-sunxi
bfree has quit [Ping timeout: 244 seconds]
iamfrankenstein has joined #linux-sunxi
bfree has joined #linux-sunxi
ricardocrudo has joined #linux-sunxi
nemunaire has quit [Quit: quit]
mosterta has quit [Ping timeout: 240 seconds]
Da_Coynul has joined #linux-sunxi
ricardocrudo has quit [Ping timeout: 260 seconds]
premoboss has joined #linux-sunxi
Da_Coynul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Da_Coynul has joined #linux-sunxi
ricardocrudo has joined #linux-sunxi
Da_Coynul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Da_Coynul has joined #linux-sunxi
fire219 has joined #linux-sunxi
IgorPec has quit [Ping timeout: 244 seconds]
Da_Coynul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Da_Coynul has joined #linux-sunxi
Da_Coynul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Nyuutwo has quit [Ping timeout: 240 seconds]
rst1987 has joined #linux-sunxi
Da_Coynul has joined #linux-sunxi
<rst1987> Hi, I am trying to build a bootable sd-card for an MeleA2000 from mainline. I read the wiki, but I am confused which u-boot files i have to write to the sd-card.
<plaes> which wiki page?
ChanServ has quit [shutting down]
<plaes> it says u-boot-sunxi-with-spl.bin
<rst1987> and anothe webpage in the wiki said that i should use u-boot-dtb.bin, because the other one is outdated
<plaes> ok, will fix
<plaes> u-boot has evolved a lot
<rst1987> Therefore i did u-boot-sunxi-with-spl.bin with seek=8 and u-boot-dtb.bin with sekk=32 But It didnot work.
mosterta has joined #linux-sunxi
<plaes> for A2000 it should be u-boot-sux-with-spl bin
IgorPec has joined #linux-sunxi
ChanServ has joined #linux-sunxi
Da_Coynul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pg12 has quit [Ping timeout: 258 seconds]
<rst1987> Did you mean u-boot-sunxi-with-spl.bin from u-boot main directory?
<plaes> yes
pg12 has joined #linux-sunxi
<rst1987> I flashed it and i will try it now
<plaes> you can also use FEL to test images without switching the cards
<rst1987> it boot now, but it says it cannot read the dtb file and it tries a network boot although there is a rootfs on sd-card
<plaes> 1) you need to copy dts file from linux
<plaes> 2) you need to copy the boot.cmd to rootfs
<rst1987> I will do so and report back asap. Thank you for the help so far.
Da_Coynul has joined #linux-sunxi
rst1987 has quit [Ping timeout: 264 seconds]
rst1987 has joined #linux-sunxi
<rst1987> i Tried as you said but still sam problem. I made a pastebin od my sdcard and boot.cmd http://pastebin.com/Rw9Wihip
pg12 has quit [Ping timeout: 240 seconds]
pg12 has joined #linux-sunxi
IgorPec has quit [Ping timeout: 276 seconds]
cnxsoft has quit [Quit: cnxsoft]
cptG has joined #linux-sunxi
cptG_ has quit [Ping timeout: 252 seconds]
Da_Coynul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Da_Coynul has joined #linux-sunxi
Andy-D has quit [Remote host closed the connection]
rst1987 has quit [Quit: Page closed]
Da_Coynul has quit [Ping timeout: 252 seconds]
IgorPec has joined #linux-sunxi
perr has quit [Quit: Leaving]
kido has quit [Ping timeout: 260 seconds]
Nacho has quit [Ping timeout: 244 seconds]
Nacho has joined #linux-sunxi
mosterta has quit [Ping timeout: 276 seconds]
kido has joined #linux-sunxi
Nacho has quit [Ping timeout: 250 seconds]
MiLeon has joined #linux-sunxi
corecode has joined #linux-sunxi
<corecode> hi!
souther has quit [Ping timeout: 250 seconds]
souther has joined #linux-sunxi
Da_Coynul has joined #linux-sunxi
IgorPec has quit [Ping timeout: 276 seconds]
iamfrankenstein has quit [Quit: iamfrankenstein]
<MoeIcenowy> mripard, wens: I tried to add cpufreq to A33 with ccu
<MoeIcenowy> but when the frequency adjusts
<MoeIcenowy> the cpuinfo_cur_freq become 24000
<MoeIcenowy> and the operation become soo sloooooooow
<MoeIcenowy> (maybe it's really running under 24MHz
scream has joined #linux-sunxi
<MoeIcenowy> I modelled after sun6i-a31.dtsi
nemunaire has joined #linux-sunxi
ornitorrincos has quit [Quit: ZNC 1.6.3 - http://znc.in]
ornitorrincos has joined #linux-sunxi
ornitorrincos has quit [Changing host]
ornitorrincos has joined #linux-sunxi
MiLeon has quit [Quit: Leaving]
mont3z has joined #linux-sunxi
<corecode> if i pull down the UBOOT pin, shouldn't the system boot?
<corecode> at least i can't see any serial output
|Jeroen| has joined #linux-sunxi
<MoeIcenowy> corecode: it's a special mode
<MoeIcenowy> it boots from USB
<MoeIcenowy> if you connect the USB OTG port to a PC
<MoeIcenowy> and run lsusb under linxu
<MoeIcenowy> linux
<MoeIcenowy> you will see a device with id 1f3a:efe8
<MoeIcenowy> then you can use sunxi-tools' sunxi-fel tool to boot it
<corecode> aha!
<corecode> let me try that
IgorPec has joined #linux-sunxi
<corecode> aha!
<corecode> yes
<corecode> thank you
<corecode> i just want to install armbian onto the mmc
<corecode> but i'm lacking a sdcard
<MoeIcenowy> eMMC?
<corecode> nand
<corecode> (orange pi pc plus)
<corecode> ah!
<corecode> if i send "2" on the UART, it also goes into fel
<corecode> i just want uboot to prompt :/
<corecode> ERROR: Allwinner USB FEL device not found!
<corecode> :/
<corecode> but lsusb shows it?
<MoeIcenowy> try again.
<corecode> lol?
<corecode> it works alternatingly
<corecode> yey bugs
<MoeIcenowy> it's a mysterious bug'
therealfibonacci has joined #linux-sunxi
jstein has quit [Remote host closed the connection]
<corecode> hm, how do i get an OS image into the nand now
tkaiser has joined #linux-sunxi
<tkaiser> corecode: You need a SD card, then use nand-sata-install to install to eMMC
<libv> hrm, a full year for olimex to start testing the a64
<corecode> tkaiser: hi! thanks for your very informative posts on armbian
<corecode> unfortunately i don't have an empty micro sd card, so i'm trying to do the fel gymnastics
<tkaiser> corecode: At least I don't know how to access eMMC directly through FEL. My workaround would be to power on my PC and use our FEL target (combines FEL with NFS). Then Armbian runs from NFS and eMMC can be accessed. Takes me ~5 minutes and you probably a whole day
<corecode> why would it take me a whole day?
<corecode> because i need to build all binaries?
jernej has quit [Ping timeout: 240 seconds]
<tkaiser> corecode: If you start from scratch it takes long. Subsequent runs are many times faster. But stuff might go wrong.
<tkaiser> The better choice is to order 2 or 3 good Samsung EVO now.
TheSeven has quit [Disconnected by services]
[7] has joined #linux-sunxi
<corecode> heh
<corecode> do i even have to build that many packages?
<tkaiser> Buy the SD cards or read documentation. What I proposed is weird since it would require to set up the whole build system. 64-bit Xenial host with 20 GB disk space free and a few hours. Buy SD cards instead. Always great to have a spare lying around!
<corecode> yea, but i don't have any right now :)
Nyuutwo has joined #linux-sunxi
<corecode> i thought i might be able to network boot from uboot
<tkaiser> corecode: Then read through the docs: http://docs.armbian.com/Developer-Guide_FEL-boot/ (I've been involved writing them and did FEL/NFS boot a few hundred times so I've not the slightest idea what might go wrong)
<tkaiser> corecode: No network support in u-boot for H3
<corecode> ah!
<corecode> yea i read this
<corecode> unfortunately all the magic is hidden behind the ./compile.sh command
<corecode> which is what i'd like to avoid
<tkaiser> If you have an image you can move it to the NFS rootfs and then simply write it with dd to /dev/mmcblk1
<corecode> yes, that was my hope
<tkaiser> It should just work but I doubt it. And even a little mistake in the documentation will lead to your board not booting, so be prepared to waste a lot of time :)
<plaes> hey corecode ;)
<corecode> but i still need to figure out how to get fel+uboot+kernel+nfs root configured
<plaes> glad you found us :)
<tkaiser> corecode: Hopefully others give you advise for a more direct approach to access eMMC through FEL.
JohnDoe1 has joined #linux-sunxi
mont3z has quit [Ping timeout: 264 seconds]
jernej has joined #linux-sunxi
<corecode> i think booting linux makes a lot of sense
JohnDoe_71Rus has quit [Ping timeout: 264 seconds]
popolon has joined #linux-sunxi
<plaes> corecode: emmc should show up as /dev/mmcX
<corecode> yea, currently the default android image is running on there
<corecode> so i'm trying to figure out a way how to boot via fel/network or maybe usb
<plaes> hmm.. fel with OPI+ was pain
<corecode> i'm in fel mode
<corecode> plaes: or do you mean using fel mode is a pain?
<corecode> tkaiser: do you know whether uboot on the h3 can boot from a usb msc?
<plaes> corecode: you used sd-card?
<corecode> no, i don't have any sd card right now
<corecode> that's why i am doing the FEL stuff
JohnDoe1 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<corecode> hm, i guess i can load uboot and kernel from fel
<corecode> and maybe load the rootfs from usb
<corecode> because that's the kernel then
tkaiser has quit [Ping timeout: 265 seconds]
mosterta has joined #linux-sunxi
Budovi has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
avph has quit [Ping timeout: 260 seconds]
Da_Coynul has quit [Read error: Connection reset by peer]
avph has joined #linux-sunxi
<Budovi> Hello, working on a pine64+ using apritzel's close-to-mainline kernel and 64 u-boot, made image with boot0img utility. U-boots starts fine, but it is unable to load kernel (it's provided as an Image on mmc 0:1 (FAT partition))
<Budovi> Interesting is that u-boot says *** Warning - bad CRC, using default environment
<KotCzarny> that just means you didnt save any env
<KotCzarny> and doesnt affect the booting
<Budovi> then it looks for boot partitions, read dtb file into memory and after that just moves on as something has failed
<Budovi> Hit any key to stop autoboot: 0 -> switch to partitions #0, OK -> mmc0 is current device -> Scanning mmc 0:1... -> reading /sun50i-a64-pine64-plus.dtb -> 11661 bytes read in 27 ms (420.9 KiB/s) -> starting USB...
<Budovi> from what I parsed from those super confusing commands... uhh... I think at this point it gave up on mmc
<Budovi> USB fails with no controllers and then ethernet is tried, which also fails (but that's kinda expected)
Da_Coynul has joined #linux-sunxi
<Budovi> I can see all the files with fatls there, I mean I can rebuild the kernel but what's concerning me it looks like u-boot never tried to even load it
jernej has quit [Quit: Konversation terminated!]
jernej has joined #linux-sunxi
<KotCzarny> some people had similar b0rkage with a20/h3 too
<KotCzarny> dont remember what was the fix
<ssvb> corecode: here is what you need - https://linux-sunxi.org/FEL/USBBoot#Booting_the_whole_system_over_USB_.28U-Boot_.2B_kernel_.2B_initramfs.29
jernej has quit [Read error: No route to host]
jernej has joined #linux-sunxi
iamfrankenstein has joined #linux-sunxi
jernej has quit [Client Quit]
jernej has joined #linux-sunxi
valkyr1e has joined #linux-sunxi
jernej has quit [Ping timeout: 276 seconds]
<Budovi> KotCzarny: ok, I've went through u-boot commands and it looks like it only tries to boot kernel in efi mode (bootefi) and looks for it, obviously, in /efi/boot/bootaa64.efi
<Budovi> so I guess in mainline pine64_plus_defconfig is efi-only booting? :
<Budovi> that actually sucks...
<ssvb> Budovi: what's wrong with efi?
jernej has joined #linux-sunxi
<corecode> ssvb: yea i found that
<corecode> oh, i managed to find an sd card, but all i get from uboot is Trying to boot from MMC2
<corecode> :/
<ssvb> corecode: what kind of hardware & u-boot version are you using?
IgorPec has quit [Ping timeout: 255 seconds]
<corecode> orange pi pc plus v1.1, U-Boot SPL 2016.05-armbian (Jun 01 2016 - 19:42:08)
<ssvb> are you loading this u-boot via fel?
<corecode> no, i found a samsung EVO
<ssvb> and what? are you booting from the sd card then?
<corecode> well i am trying to, but it doesn't say anything after Trying to boot from MMC2
<corecode> so something is wrong
<ssvb> are you sure that this u-boot is not getting loaded from eMMC? The "Jun 01 2016 - 19:42:08" date definitely looks suspicious (if you compiled the u-boot binary yourself)
<corecode> no, that's from the armbian image
<corecode> which i wrote to the sd card
<ssvb> can you try newer U-Boot? now it should use the right boot media based on the information passed from the boot ROM
<ssvb> I guess, the older hackish boot media identification heuristics might be failing for some reason
<corecode> hm
<corecode> why don't i even see the BOOT0 output?
therealfibonacci has quit [Quit: Leaving.]
<corecode> does boot0 come from the nand/sdcard?
<ssvb> do you have boot0 in eMMC?
mosterta has quit [Ping timeout: 240 seconds]
clever has quit [Ping timeout: 276 seconds]
<corecode> i have no idea - i guess so
<corecode> i really just got it
<ssvb> what happens if you try to boot *without* having the sd card inserted?
<ssvb> does it boot from eMMC and print something to the serial console?
<corecode> yes, it boots the android that is on the emmc
Gerwin_J has quit [Quit: Gerwin_J]
<ssvb> so you get boot0 messages?
* ssvb is trying to get a clear picture about what is happening
<ssvb> like I said before, it might be that the U-Boot SPL gets loaded from the SD card, looks around for the boot media and thinks that the rest of U-Boot is supposed to be on eMMC just because it can find the eGON signature there
<ssvb> this is supposed to be fixed by a recent U-Boot commit http://git.denx.de/?p=u-boot.git;a=commitdiff;h=ef36d9ae1646e5aee7c1425ee507d275699a072e
<ssvb> if you can compile a newer U-Boot from git, then we could see if that was really the case or not
<corecode> another dd later and it boots
<corecode> -_-
<corecode> something must have been wrong on the sd card
<corecode> however, md5sum is extremely slow
<ssvb> ok, maybe some dust or grease in the slot or whatever
<Budovi> ssvb: what do I need to do to boot kernel image in efi mode? I don't want any boot loaders (grubs)...
<agraf> Budovi: you load the kernel somewhere with the load command
<Budovi> thanks, will think about it... it's either this or own uboot script
<agraf> Budovi: then you adjust bootargs
<agraf> Budovi: then you load the device tree somewhere
<agraf> Budovi: and then there’s a special device tree command to finalize the device tree, so to put bootargs and initrd addresses into the dt
<Budovi> I was actually able to load it manually already with booti (no efi) so it's working, only some complications with initrd... but... w/e
<agraf> Budovi: i keep forgetting what that command is, just do “help fdt"
<agraf> Budovi: and once the fdt is adjusted, run bootefi <kernel addr> <fdt addr>
<agraf> Budovi: or were you looking for something different? ;)
<Budovi> something about CONFIG_EFI_STUB :) but thanks... will manage either way
IgorPec has joined #linux-sunxi
Da_Coynul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yann has quit [Ping timeout: 240 seconds]
jernej has quit [Ping timeout: 252 seconds]
IgorPec has quit [Ping timeout: 250 seconds]
Da_Coynul has joined #linux-sunxi
jernej has joined #linux-sunxi
jernej has quit [Client Quit]
Da_Coynul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Nacho has joined #linux-sunxi
scream has quit [Remote host closed the connection]
Amit_t_ has quit [Ping timeout: 264 seconds]
foxx_ has quit [Quit: terminated!]
foxx_ has joined #linux-sunxi
mosterta has joined #linux-sunxi
mosterta has quit [Client Quit]
foxx_ has quit [Ping timeout: 276 seconds]
tlwoerner has quit [Ping timeout: 250 seconds]
reinforce has joined #linux-sunxi
JohnDoe_71Rus has quit [Remote host closed the connection]
bonbons has quit [Quit: Leaving]
mosterta has joined #linux-sunxi
tlwoerner has joined #linux-sunxi
tlwoerner_ has joined #linux-sunxi
Budovi has quit [Quit: Page closed]
tlwoerner has quit [Ping timeout: 265 seconds]
apritzel has joined #linux-sunxi
iamfrankenstein has quit [Quit: iamfrankenstein]
|Jeroen| has quit [Quit: dada]
tlwoerner_ has quit [Ping timeout: 265 seconds]
tlwoerner_ has joined #linux-sunxi
aalm has joined #linux-sunxi
Da_Coynul has joined #linux-sunxi
lemonzest has quit [Quit: Leaving]
reinforce has quit [Quit: Leaving.]
vagrantc has joined #linux-sunxi
cYmen has joined #linux-sunxi
<cYmen> I'm trying to get a cubietruck running with one of the images from armbian.com. It boots but halfway through boot it switches to a graphics mode that none of my monitors like. Can I prevent that somehow?
Putti has quit [Ping timeout: 260 seconds]
mosterta has quit [Ping timeout: 276 seconds]
mosterta has joined #linux-sunxi
ricardocrudo has quit [Ping timeout: 260 seconds]
paulk-collins has quit [Quit: Leaving]
Andy-D has joined #linux-sunxi
netlynx has quit [Quit: Ex-Chat]
ssvb has quit [Ping timeout: 276 seconds]
ssvb has joined #linux-sunxi
Da_Coynul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mosterta has quit [Ping timeout: 252 seconds]
premoboss has quit [Ping timeout: 255 seconds]
OverCR has quit [Quit: Leaving.]
<corecode> i'm trying to disable eth0 on boot, but can't figure it out