JohnDoe_71Rus has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<TJvV>
igraltist: it's generally stated somewhere in the datasheet/user manual/appnotes of the chip you're using
<TJvV>
for example, in the A13 user manual, you can find a memory mapping, where DDR-2/DDR-3 is mapped to 0x40000000 - 0xBFFFFFFF; so you can pick a nice spot in that memory region to load your kernel to
<TJvV>
(Allwinner A13)
<igraltist>
ok thx
<igraltist>
so i must somehow calculate the size of uImage for enough space
<Turl>
igraltist: look at the wiki, there's some examples there
vector80 has quit [Remote host closed the connection]
naobsd has quit [Read error: Connection reset by peer]
naobsd has joined #linux-sunxi
domidumont has quit [Read error: Connection reset by peer]
ynezz has quit [Ping timeout: 246 seconds]
ynezz has joined #linux-sunxi
gianMOD has quit [Remote host closed the connection]
khuey_ is now known as khuey|away
ricardocrudo has quit [Ping timeout: 255 seconds]
libcg has joined #linux-sunxi
bonbons has joined #linux-sunxi
libcg has quit [Client Quit]
npcomp has quit [Ping timeout: 265 seconds]
npcomp has joined #linux-sunxi
khuey|away is now known as khuey_
_massi has quit [Remote host closed the connection]
von_fritz has joined #linux-sunxi
simosx has quit [Ping timeout: 252 seconds]
<T0mW>
I'm using u-boot-2015-01 to load the kernel + dtb from the FAT partition of the SD card. Could I, instead, get those two images from the ext3 (linux) partition?
FR^2 has quit [Quit: Connection reset by peer]
<paulk-collins>
T0mW, ext3 partition from where?
afaerber has quit [Quit: Verlassend]
<paulk-collins>
from the sd card?
<T0mW>
yes
<paulk-collins>
of course
<T0mW>
paulk-collins: thanks
<paulk-collins>
just specify that in the boot script
<paulk-collins>
that would be boot.scr on either partition or extlinux/extlinux.conf on the said partition
<T0mW>
paulk-collins: just did it. :) this solves a problem with building the 3.19 kernel using Yocto (OE)
<paulk-collins>
alright
<T0mW>
couldn't quite figure how I would get the dtb into the FAT partition... heh
<paulk-collins>
what's the problem there?
<paulk-collins>
maybe your build system gives you everything on a single partition?
<paulk-collins>
btw you don't need to have a fat32 partition at all
<ssvb>
T0mW: does your build system mount ext3 partitions?
<T0mW>
paulk-collins: just put it all together, cleaned out the FAT partition of all files, put dtb + uimage into /boot of the ext4 partition, and it booted up.
<T0mW>
ssvb: it creates them, creates the SD card image with both partitions (FAT + ext4).
<T0mW>
ssvb: finally getting around to packaging up the last few weeks of u-boot + 3.19 kernel work and rolling it all into my Yocto build.
<ssvb>
T0mW: is it possible to work with ext4 partition images this as a normal user without root privileges?
* ssvb
wonders if it is possible to easily mount an sd card image without /dev/loop
<ssvb>
maybe something fuse based?
frank has quit [Ping timeout: 264 seconds]
frank has joined #linux-sunxi
<T0mW>
ssvb: well, yes, Yocto (oe) has a devshell mode in which you are logged in as a pseudo-root user. For example, if you touch a file (touch it) your UID + GID is 0.0. However, if you try to edit /etc/sudoers of your system, you get blocked.
Dodger78 has joined #linux-sunxi
<NiteHawk>
ssvb: depends on the specific partition layout on the card (image). normally losetup with the -o option should suffice
<Dodger78>
hi guys
<T0mW>
ssvb: so, if you want to mount the SD image on the loopback, you have to be the real root user (su or sudo) to do so.
<ssvb>
NiteHawk, T0mW : I basically want to be able to transparently read the ext4 partition of the raw SD card image from a script, and the script should be runnable by a non-privileged user
<NiteHawk>
hmmm... afaik setting up loopfiles and mounting are always priviledged operations
afaerber has joined #linux-sunxi
<T0mW>
ssvb: hmm, I think that you would still have to mount that using a loopback. I haven't found a way around that, 'mount' wants root.
<NiteHawk>
and to get to the actual partition content you'd have to consider its start offset (from the partition table). that's why i suggested losetup -o
<NiteHawk>
there's a "usermount" option, but that requires /etc/fstab, i think
wickwire has quit [Quit: Leaving]
<T0mW>
ssvb: not sure how Yocto does that, at one time I saw some info from buildroot or openembedded about this, but I don't recall.
<ssvb>
T0mW: in principle, we just have a container file in a certain format (like any *.zip or other archive), accessing the files stored inside should be possible without any special privileges :)
<T0mW>
ssvb: correct, that is what I believe they are doing. go over to #yocto and ask?
<ssvb>
T0mW: thanks for the advise
<T0mW>
ssvb: those guys are really helpful. But you have to get on that channel before 5PM US time as they are mostly Intel employees.
<ssvb>
NiteHawk: the final goal is not to mount the partition, but to access files inside :)
gianMOD_ has joined #linux-sunxi
<NiteHawk>
sure. but you'd still have to be aware of that "container" issue (filesystem image vs. disk image) - which libguestfs might handle gracefully, of course
gianMOD_ has quit [Remote host closed the connection]
gianMOD has joined #linux-sunxi
gianMOD has quit [Remote host closed the connection]
gianMOD has joined #linux-sunxi
FDCX_ has joined #linux-sunxi
von_fritz has quit [Quit: Don't Panic]
akaizen has quit [Remote host closed the connection]
akaizen has joined #linux-sunxi
iamfrankenstein has quit [Ping timeout: 272 seconds]
FreezingCold has joined #linux-sunxi
Black_Horseman has joined #linux-sunxi
Black_Horseman has joined #linux-sunxi
Dodger78 has quit [Read error: Connection reset by peer]
iamfrankenstein has joined #linux-sunxi
gianMOD has quit [Remote host closed the connection]
gianMOD has joined #linux-sunxi
domidumont has quit [Ping timeout: 246 seconds]
bonbons has quit [Quit: Leaving]
ojn has quit [Excess Flood]
ojn has joined #linux-sunxi
gianMOD has quit [Remote host closed the connection]
gianMOD has joined #linux-sunxi
gianMOD has quit [Remote host closed the connection]
leviathanch has joined #linux-sunxi
<oliv3r>
paulk-collins: ohh awesome gotta check that out tomorrow :)
ZbooNet has quit [Remote host closed the connection]
steeve has joined #linux-sunxi
ricardocrudo has quit [Ping timeout: 256 seconds]
paulk-collins has quit [Quit: Quitte]
FDCX_ has quit [Ping timeout: 252 seconds]
Renard has quit [Remote host closed the connection]