rellla 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 - *only registered users can talk*
lurchi_ is now known as lurchi__
ChriChri_ has joined #linux-sunxi
ChriChri has quit [Ping timeout: 260 seconds]
ChriChri_ is now known as ChriChri
lurchi__ is now known as lurchi_
popolon has quit [Quit: WeeChat 2.9]
lurchi_ is now known as lurchi__
vagrantc has quit [Quit: leaving]
[NamelessPT] is now known as [KlaxonAutism]
[KlaxonAutism] has quit [Quit: Come come backyard is open :Ð]
[NamelessPT] has joined #linux-sunxi
<sunshavi> I have just tried FreeBSD on orangepi-pc
<tuxd3v> sunshavi, what are your toughts about it?
<tuxd3v> I doesn't knew about Freebsd support for ARM :)
_whitelogger has joined #linux-sunxi
<sunshavi> tuxd3v: I have tried netbsd 2 months ago. Immediately I tried FreeBSD con of an error with network on FreeBSD
<sunshavi> i have took me for my ows mistake, several tries until today
<tuxd3v> sunshavi, congratz
<sunshavi> for NetBSD. It was very simple an easy dd netbsd.img dd u-boot-script.bin
<tuxd3v> I am yet to experiment with it ;)
<tuxd3v> were do you found those images?
<tuxd3v> I already searched for it, and don't find them :(
<sunshavi> for my experiment with NetBSD i compiled my own u-boot on my LUNIX-box (opi+2e). {Later It proved to be a mistake, But wait for that part of the story}
<sunshavi> NetBSD. does not recognize my network and the audio of my SBC. And also it dit not work properly when connected to my LUNIX-box that feed ethernet to opipc
<sunshavi> for FreeBSD. I tried the same receipt and it failed horribly {no boot was possible}
<sunshavi> I have tried more than 5 snapshot releases {every forthnight there is a new release}
cnxsoft has joined #linux-sunxi
<tuxd3v> but does freebsd has arm support?how do you managed to compile its kernel?
<sunshavi> On the FreeBSD site: They assume You have another box with FreeBSD installed on it. And they tell You to use his pkg u-boot-orangepi-pc {get the binary from it and dd}. I keep working with my own u-boot and failed.
<tuxd3v> I don't know much, but I confess that I was already looking to that..
<sunshavi> Yesterday. I downloaded manually the u-boot-orangepi-pc.tgz and dd it to uSD and voila everything worked as expected
<sunshavi> audio works, network works
<sunshavi> so. probably the same should work on NetBSD with their own u-boot-orangepi-pc
<tuxd3v> nice! :)
<tuxd3v> I found this..
<sunshavi> So. today I reported it back to netbsd a few hours ago. And they told me somebody beat me on reporting the network problem on NetBSD. That problem does not happend when connected directly to the router
<sunshavi> on the next fortnight that problem is going to be fixed on NetBSD also. And I am going to try it with NetBSD's u-boot-orangepi-pc
<sunshavi> and check if audio and network works also
<sunshavi> so my recommendation You could try inmediately FreeBSD
<sunshavi> get FreeBSD-12.1-RELEASE-arm-armv7-GENERICSD.img and https://freebsd.pkgs.org/12/freebsd-armv7/u-boot-orangepi-pc-2020.04.txz.html
<tuxd3v> NetBSD seems to support OrangePi one Plus :)
<sunshavi> and You are going to be pretty fine
<sunshavi> tuxd3v: then try It
<sunshavi> BTW. i have inspected FreeBSD u-boot patches. THey do several cache_flush. And that is all they do. A doubt I have is "Why FreeBSD patches are not applied to mainline u-boot"
<sunshavi> so a LUNIX person could just compile u-boot on his box and dd the Free|Net(BSD) img
<sunshavi> tuxd3v: answering your question: Yes. FreeBSD has arm support. It even boots 8 GB Mem RPI
<tuxd3v> indeed
<sunshavi> It boots the pinephone also
<tuxd3v> I didn't kew of that, is amazing indeed, I am reading about it and they say a single image supports all boards?
<sunshavi> You could inspect it here: https://dmesgd.nycbug.org/index.cgi
<tuxd3v> maybe I am reading it wrong
<sunshavi> Most of them. Yes the generic image. the difference among the generic image and the other arm images is u-boot mostly
<sunshavi> allwinner works just with the generic image except the pinephone
<sunshavi> BTW. the network disconnection that happens with LUNIX has not appeared until now with FreeBSD or NetBSD
<tuxd3v> so they need to update this:
ldevulder_ has joined #linux-sunxi
<sunshavi> Yes: "Last modified: 2017-12-30"
ldevulder__ has quit [Ping timeout: 240 seconds]
<sunshavi> I meet a guy that boot opi+2e with FreeBSD to an external-ssd using a uSD. I have done the same. But every time a new kernel is released I need to update the hdd and uSD. I am going to ask this guy. How is his boot working. Perhaps He Does not need to update both of them as I do
ChriChri_ has joined #linux-sunxi
ChriChri has quit [Ping timeout: 244 seconds]
ChriChri_ is now known as ChriChri
<sunshavi> BTW. my case is for LUNIX not for FreeBSD
<tuxd3v> he could be using the boot.scr script, on the uSD card, and point it out to load the kernel and stuff from the usb
<tuxd3v> maybe
<tuxd3v> you have installed only a server os , or you have a desktop?
<sunshavi> for now. It is a server. But for desktop I just need sudo pkg install openbox {that's it}
<tuxd3v> :)
<tuxd3v> I think I will try it tomorrow, on my Orangepi one plus :)
<sunshavi> tuxd3v: Let me know how it goes
<tuxd3v> ok, deal :)
juri_ has quit [Ping timeout: 240 seconds]
TheSeven has quit [Ping timeout: 260 seconds]
[7] has joined #linux-sunxi
juri_ has joined #linux-sunxi
gaston1980 has quit [Quit: Konversation terminated!]
luke-jr has quit [Quit: ZNC - http://znc.sourceforge.net]
luke-jr has joined #linux-sunxi
lurchi_ has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 260 seconds]
JohnDoe_71Rus has joined #linux-sunxi
diego71 has joined #linux-sunxi
syso has joined #linux-sunxi
syso has quit [Client Quit]
syso has joined #linux-sunxi
<syso> I am currently trying to look into a Soundcraft UI16 digital mixer, which is based on the sun7i. There is telnetd running, but with an unknown root password. I was unable to obtain FS (NAND) access, but I am now successfully entering FEL via a DIY USB A-A OTG cable.
<syso> Is there a way to extract the FEX from the original uImage?
<syso> So far I was able to boot the c64mini ramdisk on it and use it's NAND driver, but it seems like this is failing due to a missing/incorrect FEX file.
kaspter has joined #linux-sunxi
syso_ has joined #linux-sunxi
syso has quit [Ping timeout: 240 seconds]
datagutt has quit [Ping timeout: 240 seconds]
datagutt has joined #linux-sunxi
datagutt has quit [Changing host]
datagutt has joined #linux-sunxi
arnd has quit [*.net *.split]
RichardG867_ has quit [*.net *.split]
MartijnBraam has quit [*.net *.split]
Jeremy_Rand_DT[4 has quit [*.net *.split]
fevv8[m] has quit [*.net *.split]
insep_ has quit [*.net *.split]
Benjojo has quit [*.net *.split]
huawei has quit [*.net *.split]
dhewg has quit [*.net *.split]
<KotCzarny> /j #h3droid
<KotCzarny> yeah. some program is keeping partition open
<KotCzarny> even when umounted
<KotCzarny> havent found a fix
<KotCzarny> and it doesnt happen with gpt
<KotCzarny> drat
<KotCzarny> stupid space
syso has joined #linux-sunxi
syso_ has quit [Ping timeout: 244 seconds]
insep_ has joined #linux-sunxi
arnd has joined #linux-sunxi
RichardG867_ has joined #linux-sunxi
fevv8[m] has joined #linux-sunxi
MartijnBraam has joined #linux-sunxi
Benjojo has joined #linux-sunxi
Jeremy_Rand_DT[4 has joined #linux-sunxi
huawei has joined #linux-sunxi
dhewg has joined #linux-sunxi
cmeerw has joined #linux-sunxi
syso_ has joined #linux-sunxi
syso has quit [Ping timeout: 244 seconds]
syso_ is now known as syso
<syso> Still can't figure out how to extract the fex from a proprietary uImage.
<KotCzarny> have you seen the wiki page ?
<syso> Yes, but couldn't find any info on reversing it
<syso> Thats the original boot.img with zImage and initrd (cpio archive) https://keep.sh/a04e677751/boot.img
yann has joined #linux-sunxi
<KotCzarny> fex is not a file
<syso> Unfortunately the vendor only gives a partial firmware update, which is incremental.
<KotCzarny> have you checked if they still have local root hole?
<KotCzarny> assuming you have some terminal available
<syso> KotCzarny: Which one? So far I didn't find a working uart. the uart labeled uart5 seems some binary protocol (autobauding and going trough baudrates manually didn't result in ASCII boot messages)
<KotCzarny> os terminal
<syso> I couldn't find a working UART which gives me a terminal (yet).
<syso> I can create a wiki page to share my progress and hardware details, if that helps.
<KotCzarny> you can try dumping nand to sdcard, and extract fex from there
<KotCzarny> but still, without working uart its not possible
<syso> I got USB FEL boot working, though. Made a USB A-A OTG cable and was able to connect. Loading a random (c64mini) image works.
<syso> Is that of any help?
<KotCzarny> probably
<KotCzarny> that device is quite expensive
<syso> Yep. All in all it's a great device, but I need to run some custom stuff in addition on it.
<syso> Thats the Digital PCB including the A20 SoC https://imgur.com/a/Lf3676g
<syso> Fortunately, all pins are labeled. But the only UART on it seems to be communicating with their analog frontend (its on the GPIO16 header and on the 1x4 connector)
<KotCzarny> does it have sdcard slot?
<syso> KotCzarny: unpoulated
<KotCzarny> ok, try booting armbian legacy on it and see if that uart works
<syso> then first i'll need to solder a sd socket
<KotCzarny> i've meant, legacy uboot only
<KotCzarny> via fex
<KotCzarny> darn
<KotCzarny> too early in the morning for me
<KotCzarny> via fel
<syso> https://imgur.com/a/eoJDlEw top pcb view
<KotCzarny> friggin' imgur went evil way and doesnt work without ads/js now, eh
<KotCzarny> can you paste direct link to image?
<KotCzarny> thanks
<syso> soldering a new uart cable now
<syso> Which u-boot image should I use for testing?
<KotCzarny> whichever, just for a20
<KotCzarny> i wonder if j4 is for uart
<KotCzarny> you might check without soldering if on of the pads on j4 is in uart voltage range and jumps during boot
<syso> j4 next to the oscillator footprint?
<KotCzarny> dont know what is oscillator footprint, but its near those two white connectors
Mangy_Dog has joined #linux-sunxi
<syso> yep ok
<syso> looking for my logic analyzer now..
syso_ has joined #linux-sunxi
<syso_> tested again uart5. no messages with random uboot
<KotCzarny> uart5 is probably used only by application
<KotCzarny> you need to find uart0
<KotCzarny> unless you compile your own uart that will use uart5
syso has quit [Ping timeout: 240 seconds]
cmeerw has quit [Ping timeout: 244 seconds]
<KotCzarny> darn
<KotCzarny> s/own uart/own uboot/
<syso_> have login
<syso_> jp4 is uart0
<KotCzarny> :)
<KotCzarny> now you can also hack uboot (most likely)
<syso_> but it wants a pw still
<KotCzarny> yup
<KotCzarny> find out if you have nand or emmc
<KotCzarny> if nand, you are stuck with legacy uboot/kernel to access fs/data
<KotCzarny> nice, looks like emmc
<KotCzarny> you can try stopping uboot, then boot with added 'single' or 'init=/bin/bash' params
<KotCzarny> then hack the root password
<syso_> yup trying to figure out now to. ctrl+c?
<KotCzarny> pressing any key during uboot stage
<KotCzarny> unless it's compiled out
<KotCzarny> [ 1.239]Hit any key to stop autoboot: 0
<KotCzarny> sometime just before that message
<syso_> nope doesn't interrupt it
<syso_> is it worth trying loading a stock u-boot via fel and then changing bootcmd?
<syso_> been trying to boot openwrt, but no output after "Starting Kernel."
<KotCzarny> since you have emmc, you can use stock/mainline tools
<KotCzarny> might be compiled without early_printk
<syso_> So my own u-boot works, but cannot boot stock kernel. I'm kind of missing loading the initrd with FEL
<KotCzarny> you can glue initrd to kernel
<KotCzarny> but i think fel also supports loading initrd ?
<syso_> ./sunxi-fel -v uboot ../boot/u-boot-sunxi-with-spl.bin write 0x48000000 ../boot/uImage write 0x43000000 ../boot/initrd.img write 0x41000000 ../boot/script.bin write 0x43100000 ../boot/uEnv.txt
<syso_> "Ramdisk image is corrupt or invalid"
<KotCzarny> try some other address for initrd?
<syso_> Taken that address from the bootimg.cfg
<KotCzarny> (and dont forget to update boot.cmd/scr to reflect the change)
iamfrankenstein has joined #linux-sunxi
<KotCzarny> is ramdisk wrapped for uboot?
<syso_> I have no idea. It's what I've extracted from stock fw
<KotCzarny> run 'file filename'
<KotCzarny> it will try to identify what it is
<syso_> I'm probably loading initrd wrongly
<KotCzarny> i wonder if uboot can export partition/device
<KotCzarny> since you only want to hack the root pass
<syso_> here is the full boot log https://pastebin.com/AUmmc55g
<syso_> oh wait. why do I actually load initrd and kernel via FEL?
<syso_> should be enough to load uboot?
<KotCzarny> uboot cant edit files easily
<KotCzarny> you can boot from uboot, but you still need to get working os somehow
<syso_> but i have the OS on the eMMC, so changing cmdline by uboot to init=/bin/sh should be sufficient
<KotCzarny> not neccessarily
<syso_> just it seems like my uboot doesn't support emmc
<KotCzarny> you still need to have terminal
<syso_> Loading Environment from FAT... ** Bad device mmc 1 **
<KotCzarny> unless usb kb and display works
<KotCzarny> mmc1 is wifi card
<syso_> well I have a serial console now on uart1
<KotCzarny> mmc0 is sdcard, mmc2 is emmc
<syso_> uaer0
<syso_> Hm, do you have any u-boot image to try? the Olimex A20-Olinuxino Micro cannot boot the stock kernel
syso_ is now known as syso
<KotCzarny> check armbian
<KotCzarny> or just build your own
<KotCzarny> it's a simple task
<KotCzarny> make sure to enable emmc support (or select board config that uses it)
syso_ has joined #linux-sunxi
netlynx has joined #linux-sunxi
netlynx has joined #linux-sunxi
netlynx has quit [Changing host]
syso has quit [Ping timeout: 244 seconds]
syso_ is now known as syso
<syso> KotCzarny: compiled my own u-boot, but it says MMC: no card present
<KotCzarny> pastebin?
<KotCzarny> it's sdcard
romainmahoux[m] has joined #linux-sunxi
<syso> sorry?
<KotCzarny> sdcard also presents as MMC device
<syso> but it should list then sd and emmc?
<syso> => mmc list
<syso> mmc@1c0f000: 0
<KotCzarny> and olinuxino lime has only sdcard, no emmc
<KotCzarny> 12:15 #linux-sunxi |> sdcard also presents as MMC device
<KotCzarny> *presents itself
<KotCzarny> that uboot doesnt have emmc config added
<KotCzarny> afair emmc is mmc@1c0f200:
<KotCzarny> afair to use emmc it needs CONFIG_MMC_SUNXI_SLOT_EXTRA configured in uboot
<KotCzarny> most likely CONFIG_MMC_SUNXI_SLOT_EXTRA=2 in your case
<syso> thx will try
<KotCzarny> and remember that pins might differ from device to device
<syso> yeah I hope I'm lucky
<KotCzarny> gotta run for now, bbl
<syso> no luck unfortunately
<syso> ok
JohnDoe_71Rus has quit [Quit: KVIrc KVIrc Aria 5.0.1, revision: 5.0.1+git-7433-0df9f22f2, build type: debug, sources date: 20160102, built on: 2019-12-08 19:19:20 UTC 5.0.1+git-7433-0df9f22f2 http://www.kvirc.net/]
MoeIcenowy has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
MoeIcenowy has joined #linux-sunxi
romainmahoux[m] is now known as mahoux
mahoux has quit [Quit: authenticating]
mahoux has joined #linux-sunxi
netlynx has quit [Excess Flood]
warpme_ has joined #linux-sunxi
iamfrankenstein has quit [Quit: iamfrankenstein]
syso_ has joined #linux-sunxi
hramrach has quit [Ping timeout: 260 seconds]
syso has quit [Ping timeout: 260 seconds]
netlynx has joined #linux-sunxi
Mangy_Dog has quit [Ping timeout: 258 seconds]
syso_ is now known as syso
<syso> no success initializing the emmc yet.
s_frit has joined #linux-sunxi
hramrach has joined #linux-sunxi
cnxsoft1 has joined #linux-sunxi
cnxsoft has quit [Ping timeout: 240 seconds]
syso_ has joined #linux-sunxi
syso has quit [Ping timeout: 244 seconds]
Net147 has quit [Read error: Connection reset by peer]
Net147 has joined #linux-sunxi
hexdump0815 has joined #linux-sunxi
<hexdump0815> jernej: are there any plans to make hdmi output working in u-boot on h6 too? i have it on a20, h3 and some amlogic boxes and its very nice to easily switch kernels without a serial console attached :)
Net147 has quit [Read error: Connection reset by peer]
Net147 has joined #linux-sunxi
Net147 has quit [Read error: Connection reset by peer]
Net147 has joined #linux-sunxi
Net147 has quit [Read error: Connection reset by peer]
<jernej> hexdump0815: I don't have any plans to do that
<jernej> it turns out that at least on H3 and H5 and probably others too, improper U-Boot to Linux handover causes that Linux driver is unable to read EDID
<jernej> so that's why I have HDMI driver disabled by default on LE
Net147 has joined #linux-sunxi
<jernej> in U-Boot
Net147 has quit [Read error: Connection reset by peer]
Net147 has joined #linux-sunxi
Net147 has quit [Read error: Connection reset by peer]
Net147 has joined #linux-sunxi
cnxsoft1 has quit [Quit: cnxsoft1]
syso has joined #linux-sunxi
syso_ has quit [Ping timeout: 246 seconds]
damncourier has joined #linux-sunxi
<hexdump0815> jernej: thanks for the info
AneoX has joined #linux-sunxi
Perlovka_ has quit [Ping timeout: 240 seconds]
[NamelessPT] has quit [Quit: Oh?!]
Perlovka has joined #linux-sunxi
[NamelessPT] has joined #linux-sunxi
s_frit has quit [Remote host closed the connection]
s_frit has joined #linux-sunxi
syso_ has joined #linux-sunxi
syso has quit [Ping timeout: 244 seconds]
JohnDoe_71Rus has joined #linux-sunxi
s_frit has quit [Read error: Connection reset by peer]
s_frit has joined #linux-sunxi
syso has joined #linux-sunxi
syso_ has quit [Ping timeout: 240 seconds]
hexdump0815 has quit [Remote host closed the connection]
[NamelessPT] has quit [Quit: I nah want to play... my dear hudson...]
popolon has joined #linux-sunxi
[NamelessPT] has joined #linux-sunxi
lurchi_ is now known as lurchi__
lurchi__ is now known as lurchi_
[NamelessPT] is now known as [RelaxingPT]
huawei has quit [Quit: ZNC - https://znc.in]
Shirasaka-Hazumi has joined #linux-sunxi
kaspter has quit [Quit: kaspter]
vagrantc has joined #linux-sunxi
AneoX has quit [Quit: Textual IRC Client: www.textualapp.com]
cmeerw has joined #linux-sunxi
warpme_ has quit [Quit: Connection closed for inactivity]
ldevulder has joined #linux-sunxi
syso_ has joined #linux-sunxi
ldevulder_ has quit [Ping timeout: 240 seconds]
syso has quit [Ping timeout: 256 seconds]
damncourier has quit [Ping timeout: 244 seconds]
damncourier has joined #linux-sunxi
Mangy_Dog has joined #linux-sunxi
damncourier has quit [Ping timeout: 244 seconds]
damncourier has joined #linux-sunxi
syso has joined #linux-sunxi
syso_ has quit [Ping timeout: 260 seconds]
damncourier has quit [Ping timeout: 240 seconds]
damncourier has joined #linux-sunxi
warpme_ has joined #linux-sunxi
lurchi_ is now known as lurchi__
[RelaxingPT] is now known as [SomeBeans]
hramrach has quit [Ping timeout: 240 seconds]
jbrown has joined #linux-sunxi
vagrantc has quit [Quit: leaving]
pdp7 has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
damncourier has quit [Ping timeout: 244 seconds]
netlynx has quit [Quit: Ex-Chat]
damncourier has joined #linux-sunxi
syso_ has joined #linux-sunxi
syso has quit [Ping timeout: 258 seconds]
AneoX has joined #linux-sunxi
jernej has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
jernej has joined #linux-sunxi
syso has joined #linux-sunxi
syso_ has quit [Ping timeout: 240 seconds]
dev1990 has joined #linux-sunxi
lurchi__ is now known as lurchi_
damncourier has quit [Ping timeout: 244 seconds]
damncourier has joined #linux-sunxi
[SomeBeans] is now known as [NAPALM-SPRAY]
cmeerw has quit [Ping timeout: 240 seconds]
syso_ has joined #linux-sunxi
syso has quit [Ping timeout: 258 seconds]
Mangy_Dog has quit [Ping timeout: 244 seconds]
syso has joined #linux-sunxi
syso_ has quit [Ping timeout: 258 seconds]