scream_ has quit [Remote host closed the connection]
tomboy64 has joined #linux-sunxi
afaerber_ has quit [Ping timeout: 260 seconds]
rafaelMOD has joined #linux-sunxi
leviathanch2 has joined #linux-sunxi
afaerber_ has joined #linux-sunxi
ddc has quit [Quit: Page closed]
arend has joined #linux-sunxi
eagles0513875 has joined #linux-sunxi
xavia has joined #linux-sunxi
deasy has joined #linux-sunxi
Wizzup_ is now known as Wizzup
uwe__ is now known as uwe_
Svetlana has joined #linux-sunxi
wingrime1 has joined #linux-sunxi
wingrime has quit [Read error: Connection reset by peer]
wingrime has joined #linux-sunxi
wingrime1 has quit [Read error: Connection reset by peer]
leviathanch2 has quit [Ping timeout: 260 seconds]
wingrime has quit [Read error: Connection reset by peer]
wingrime has joined #linux-sunxi
wingrime1 has joined #linux-sunxi
wingrime has quit [Read error: Connection reset by peer]
wingrime has joined #linux-sunxi
wingrime1 has quit [Read error: Connection reset by peer]
tomcheng76 has quit [Read error: Connection reset by peer]
wingrime has quit [Read error: Connection reset by peer]
tomcheng76 has joined #linux-sunxi
jinzo has joined #linux-sunxi
konradoo77 has joined #linux-sunxi
Quarx has joined #linux-sunxi
megal0maniac has quit [Ping timeout: 244 seconds]
castor3 has joined #linux-sunxi
<castor3>
Hi
<castor3>
I'm currently trying to boot on a SATA drive (not directly, the kernel is on the SD card) with my Olimex Lime (A10).
<castor3>
There's Debian on the SD card (the official image), and I put an archlinuxarm rootfs on /dev/sda5.
<castor3>
But I can't manage to boot with this rootfs, configuring u-boot... Is there anyone that may help me with this issue?
tomcheng76 has quit [Read error: Connection reset by peer]
tomcheng76 has joined #linux-sunxi
megal0maniac has joined #linux-sunxi
<sehraf>
castor3: does the debian kernel support everything needed for arch? (e.g. systemd?)
<castor3>
I don't know :( I know debian switched to systemd recently (on x86, at least), but I don't know for the arm version.
tomcheng76 has quit [Client Quit]
<castor3>
I constructed the uInitrd image to have the sata drivers loaded, though. I thought it was sufficient :p
<sehraf>
at which point does it stop working? does the kernel boot?
<castor3>
Well, it's quite complicated. I don't have any screen, I'm working on my network, so my only way to know is by trying a ping or a ssh access :D
<castor3>
(and on my laptop to write on the SD card when needed)
<sehraf>
i guess you don't have any shiny serial/tty cable? :D
<castor3>
I don't :'(
<castor3>
So, what I'm able to do so far, is too boot on the Debian on the SD card (and chroot on my Arch rootfs)
<sehraf>
you could download and install an arch kernel from the repos
<sehraf>
but this might mess up your debian ;)
<castor3>
I don't care about the Debian :p
<castor3>
But so, you think that I might copy the uImage from the Arch partition to my SD card?
philippe_fouquet has quit [Remote host closed the connection]
<sehraf>
technically that should work
philippe_fouquet has joined #linux-sunxi
<castor3>
Ok, I'll try it in a few minutes
<castor3>
On the wiki, they say that it's compulsory to use an initrd image
<castor3>
Is that right?
<WarheadsSE>
I heard Arch
philippe_fouquet has quit [Ping timeout: 272 seconds]
<WarheadsSE>
The A10 lime should be matter of the uboot/spl+ fex/script and that's all
<WarheadsSE>
We (arch linux arm) don't currently have a re-built uboot for the LIME
<castor3>
Ok
<castor3>
So what do I do, basically? :p
<sehraf>
castor3: Arch usually doesn't require an initrd image (as long as you don't crazy things)
<castor3>
Ah, ok
<castor3>
WarheadsSE: I use the uEnv, boot, script.bin files from Debian
Zboonet has joined #linux-sunxi
<castor3>
So they should work with Arch, since it's only material-dependant, am I right?
<WarheadsSE>
mostly
<WarheadsSE>
The only trick past that is kernel + modules
<castor3>
Ok
<castor3>
What should I do, then?
<WarheadsSE>
Well, You'd want to have the Arch kernel obv
<WarheadsSE>
should be under p5/boot/
<castor3>
It was in /boot/uImage in my archive
<WarheadsSE>
yu[p
konradoo87 has joined #linux-sunxi
<castor3>
(sunxi-???4, something like that)
<WarheadsSE>
p5/boot was in reference to your partition ;l
<castor3>
Okay :D
<WarheadsSE>
yeah, linux-sun4i
<WarheadsSE>
if the framebuffer stuff was happy in mainline, we're totally jump to that unified kernel
<castor3>
Well, I copied the Arch uImage onto my old uImage, and now it just doesn't boot :DDD
<castor3>
(because, afaik, it's not possible to directly boot on the SATA disk, so I must load the kernel from the SD card)
konradoo77 has quit [Ping timeout: 244 seconds]
<WarheadsSE>
yes
<WarheadsSE>
you do have to load the uboot from the sd card, that can't be skipped
<WarheadsSE>
what does "doesn't boot" mean?
<castor3>
Hmm. The eth led was green at first but now it's not, and normally it stays green, and the sata disk isn't running.
<castor3>
So I think there was a problem during the boot
popolon has quit [Quit: WeeChat 1.0.1]
<WarheadsSE>
yeah, serial cable?
<castor3>
Nope :(
popolon has joined #linux-sunxi
<castor3>
I searched for resources on the net, but the sunxi wiki is filled with pages which sometimes use the A20 as reference and sometimes the a10
pwhalen has left #linux-sunxi ["Leaving"]
<castor3>
And it's very troubling, especialy when you're dealing with memory ranges and stuff (when I wanted to put an initramfs, as they said in the doc)
<castor3>
(I didn't know if putting any value, sufficiently distant from the kernel memory range was fine :D)
leviathanch2 has joined #linux-sunxi
leviathanch2 has quit [Remote host closed the connection]
<WarheadsSE>
K. One point of note: ALARM doesn't ship with the framebuffer on by default
<WarheadsSE>
we do have dhcp & sshd running though
arend has quit [Remote host closed the connection]
bertrik has joined #linux-sunxi
konradoo87 has quit [Ping timeout: 272 seconds]
konradoo77 has joined #linux-sunxi
F1skr has joined #linux-sunxi
konradoo77 has quit [Ping timeout: 244 seconds]
konradoo77 has joined #linux-sunxi
ninolein has quit [Ping timeout: 245 seconds]
ninolein has joined #linux-sunxi
F1skr has quit [Ping timeout: 260 seconds]
TheSeven has quit [Ping timeout: 272 seconds]
philippe_fouquet has joined #linux-sunxi
konradoo77 has quit [Ping timeout: 245 seconds]
TheSeven has joined #linux-sunxi
notmart has quit [Quit: notmart terminated!]
paulk-collins has joined #linux-sunxi
<libv>
oh man.
<libv>
now someone else picked up on hansgs resend of the patches, and it starts all over again...
<castor3>
Maybe I forgot to take something in account from this page
<castor3>
But I don't know what, and that's why I was asking for help here, *after* having searched for a few hours on my own.
<libv>
it's easy to overlook a small thing, which is why we have uart
<castor3>
Yeah
<libv>
since simplefb apparently is the most controversial linux code in the world.
<castor3>
:D
<castor3>
Isn't it possibly to just deactivate the fb?
<castor3>
possible*
<libv>
i am refering to the uboot hdmi support, and the additions needed to the simplefb driver to get a working simple rescue console
<castor3>
Okay
<libv>
simplefb is 280loc
<libv>
the email thread is like 274 emails
<castor3>
:D
<castor3>
libv: what I don't understand about this wiki is the lack of precision about which architecture the page is referring to. It's quite detailed, but the main information that I'd like to appear isn't precised.
<castor3>
Like when they describe a boot.cmd file
<castor3>
I don't know if the memory ranges are suitable for me
<castor3>
And it has been helping me, so far, even if I didn't worked my issue out
<libv>
so i'm really really sorry that the _wiki_ is not perfect.
<castor3>
work*
<castor3>
I'm not judging you, you know. Nor I'm judging the wiki.
<libv>
i keep on recommending people to go work another SoC if they have complaints
<libv>
also, when reading wikis, it pays to look at the date on the page
<castor3>
I'm just saying it's not as clear as you seem to say, and it's all that clear for me, and that's why I'm here. That's all. The content is great, but not perfect, nobody's blaming you for that.
<libv>
yes, i am really sorry that i haven't spent, what, a thousand or so more hours on the wiki yet.
<libv>
this page has not had a thorough libv treatment anyway
<libv>
or it would not have been flat for a start
<castor3>
:(
<castor3>
So, basically, what would you adivse me to do? Wait to have the uart-usb cable shipped, or continue to try to boot on my SATA drive?
leviathanch2 has quit [Ping timeout: 272 seconds]
<castor3>
And in the latter case, what should I do, if you have any idea?
<libv>
wait for a uart.
<castor3>
Okay
<libv>
also, why do you need an initrd?
<Wes-_>
Has anyone here ever managed to use a linux-sunxi platform with an A10 SoC to either tether to an android tablet, or use the android debug bridge? I'm having problems with the USB driver am curious if I'm the only one.
<libv>
why not just have sata support compiled in?
<libv>
Wes-_: does an adb client exist for ARM?
<castor3>
libv: Because it says so in the wiki
<libv>
castor3: fix it
<castor3>
Yeah, I'd sincerely have done it if I know it wasn't necessary, but since it's not working anyway, I didn't know if it was necessary or not. I'm correcting it then.
<libv>
castor3: first try it out yourself
<castor3>
I tried it out
<libv>
oh, ok, so it changed nothing?
<castor3>
It worked as well as not having it: didn't work
<libv>
ok
<libv>
then wait for the uart to arrive
<castor3>
Okay
<Wes-_>
libv: Yes, I have one built. I just can't get the tablet to "get happy" at the USB level unless the tablet is configured to be a mass storage device. kern.log reports it keeps flipping between EHCI and OHCI mode.
<libv>
fix whatever issue needs fixing, and then fix up the wiki
<castor3>
I don't understand why you assumed at first that I didn't try anything. It's quite offensive, you know.
<libv>
Wes-_: ah
<libv>
Wes-_: what sunxi device are you using as a host?
<libv>
castor3: because that's what people do
<Wes-_>
libv: limeboard a10 from olimex
<castor3>
I don't (assume that people don't try), but ok :p
<libv>
Wes-_: are you using a usb host port on the host?
<libv>
you probably should, i guess
<Wes-_>
libv: yes I am.
<castor3>
libv: if it's to be offensive with people, I prefer not to, but thanks for the advice ;)
<libv>
castor3: you wouldn't believe the stuff that comes by here from time to time.
<libv>
Wes-_: let me open up my lime again
<castor3>
:p
<libv>
actually, why did i do that
<libv>
we have good board pics.
<libv>
it seems that these things are connected directly
<libv>
so 3 usb ports, one of which is otg, two are host, all wired directly to the a10
<libv>
the port type and detection type are correct
Gerwin_J has quit [Read error: Connection reset by peer]
<libv>
Wes-_: pastebin your dmesg, which should include the switching
<Wes-_>
And all three work -- I've used the OTG port to supply RNDIS to a Mac, and the two host ports work okay as USB mass storage, mouse, keyboard, etc. I think I also managed to get the USB Tether from the android running once by toggling the tablet mode back and forth really fast but I won't swear to it.
<Wes-_>
libv: let me find a tablet..looked at this last about two weeks ago, dmesg has rolled. Snippet from kern.log from then -- http://pastebin.mozilla.org/6699027
Gerwin_J has joined #linux-sunxi
<libv>
Wes-_: did you look at the dmesg from the android device?
<libv>
did you test the cable?
<Wes-_>
libv: Not sure how to look at the dmesg from the android device. Cable is good - tested 3. Also works when android is configured to connect as "SCSI removable disk". Device is good - tested two, completely different manufacturers and two versions of android. One was an A23 on Android 4.4, other is a Lenovo Ideatab on 4.2.
<libv>
Wes-_: start a terminal?
<libv>
ok
<Wes-_>
libv: *facepalm* (yes - I'm new to Android. spent most of my career on Solaris)
sehraf has quit [Ping timeout: 244 seconds]
bonbons has joined #linux-sunxi
sehraf has joined #linux-sunxi
rafaelMOD has quit [Quit: Saindo]
<Wes-_>
libv: Well THIS is frustrating. It's working perfectly at my desk. I need to figure out what's changed between now and then. Argh. On the plus side: now I know it can work.
<libv>
Wes-_: our sunxi-3.4 usb is pretty awful and buggy
<libv>
Wes-_: but logically, there should be no issue, as an android device just is another device
<libv>
but good, it works :)
<WarheadsSE>
I don't have (any) LIME libv castor3 or I would help you farr more directly.
<WarheadsSE>
But for the most part, castor, if you took the actual binaries from the debian image (idk how it is built) and used that uboot, script.bin, you can follow the instructions for pretty much any of the linux-sun4i devices for ALARM
<Wes-_>
libv: I'm trying to replicate the failure-conditions now, but yeah, "it works" is good. Assuming I can get it to break again, is there anything I can do to help with USB stability issues? I have great C skills (15 years+), no USB knowledge, little Linux kernel experience.
<libv>
Wes-_: just get stuck in
<libv>
nothing magical about it
<Wes-_>
libv: sounds like a plan. I might be able to get some official time-budget time on this since I'm supposed to be building a demonstrable product around those little Olimex boxes..and we absolutely need USB support, both for the tablets and the fingerprint readers we're using.
F1skr has joined #linux-sunxi
<castor3>
WarheadsSE: okay. That's what I did :p
<castor3>
But there's no actual instruction on how to boot on a sata drive
<linkmauve1>
WarheadsSE, the last time I tried to boot directly to ALARM I couldn’t get it to work, even using its kernel and module tree with Debian’s rootfs.
<linkmauve1>
So in the end I opted for the chroot option.
<linkmauve1>
That way, I got the bonus of no systemd. \o/
<philippe_fouquet>
hey the pack tool existing for mac os x?
<WarheadsSE>
castor3: not to be rude.. but I don't think thats quite what you did
<WarheadsSE>
castor3: as per sata .. get it working on an sd card, then point root= to /dev/sdaX
bertrik has quit [Remote host closed the connection]
bertrik has joined #linux-sunxi
<libv>
Wes-_: not really :)
<Wes-_>
libv: Hey, I managed to repro that issue by switching from one host port to the other. Then I plugged in the OTG port (set up for RNDIS gadget) and it stopped. *cue twilight zone music* Then I unplugged the OTG port, and it started again, and then stopped, running stably.
<sasq>
morning/evening all. I need some advice on device trees and using EINT - specifically I am attaching a enc28j60 to a cubieboard2 and going nuts trying to work out how to get the gpio interupt working
deasy has quit [Quit: Nom d'un quark, c'est Edmonton !]
<castor3>
Well, i could manage to boot on the ArchLinux kernel
<castor3>
With the Debian rootfs located on my SD card
<castor3>
(moving the Arch modules to /usr/lib/modules)
<castor3>
So it might mean that all I have to do is to put the SATA support in the kernel or something like that (sata is supported as a module on the version I have)
<castor3>
Should I recompile a kernel or could I make it work another way (like an initramfs or something)?
Gerwin_J has joined #linux-sunxi
<sasq>
castor3, i'd personally compile into the kernel, but i'm essentially lazy and hate dealing with modules
bertrik has quit [Read error: Connection reset by peer]
formruga has quit [Quit: Konversation terminated!]
<castor3>
Okay :D
kz1 has quit [Ping timeout: 260 seconds]
deasy has joined #linux-sunxi
deasy has quit [Remote host closed the connection]
<viccuad>
hi guys. I'm curious about the progress of the lima driver (seems stalled looking at gitorious), and what's needed for it to develop. thanks in advance
Andy-D has joined #linux-sunxi
<viccuad>
also, I'm a bit lost. is it possible to have a framebuffer on a sun7i (A20 olinuxino lime) with a mainline kernel, without the Mali blob?