[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Support for sunxi-based ARM systems in d-i



On Sun, Apr 27, 2014 at 07:35:35AM +0100, Ian Campbell wrote:

> I think u-boot has some sh-style control loops you can use? (for x in
> fstype1 fstype2; do ...). People keep saying one can just use "fsload"
> too, but I've not tried it myself (might need enabling in u-boot-sunxi?
> If so please do).

Hello,

just as an intermediate info as I am rather short on time at the
moment:

u-boot-sunxi does not know the fsload command. Is it possible that
fsload is not a generic "load from whatever filesystem" command but
only for accessing JFFS2 filesystems?  The file doc/README.JFFS2 in
the u-boot sources states

"JFFS2 in U-Boot is a read only implementation of the file system in
 Linux with the same name. To use JFFS2 define CONFIG_CMD_JFFS2.

 The module adds three new commands.
 fsload  - load binary file from a file system image
 fsinfo  - print information about file systems
 ls      - list files in a directory
 chpart  - change active partition"

I have looked through the system configs for various platforms in the
u-boot source tree and all the systems using the fsload command I
have found use a JFFS2 partition to boot from.  Looking through
several mailing list threads in which fsload was mentioned also
yielded only systems that boot from JFFS2.  Due to lack of
documentation indicating the contrary, I am therefore led to believe
that fsload is just a filesystem-specific command like fatload,
ext2load and ext4load, though not particularly unambiguously named ;-).

> > +bootm 0x46000000 0x48000000 0x47000000
> 
> These numbers should be kernel_addr_r etc and this should use bootz as
> in:
> 	bootz 0x46000000 0x48000000:${filesize} 0x47000000
> 
> $filesize in the initrd size, which should be loaded last so it is
> current.

kernel_addr_r, fdt_addr_rand and ramdisk_addr_r are defined for several
other platforms, but seemingly not for sunxi-based systems.  The u-boot
README states: "*Note* - these variables don't have to be defined for all
boards", so I assume that just nobody added the defines for sunxi.

Regards,
Karsten
-- 
Gem. Par. 28 Abs. 4 Bundesdatenschutzgesetz widerspreche ich der Nutzung
sowie der Weitergabe meiner personenbezogenen Daten für Zwecke der
Werbung sowie der Markt- oder Meinungsforschung.


Reply to: