From mboxrd@z Thu Jan 1 00:00:00 1970 From: Przemyslaw Marczak Date: Fri, 18 Jul 2014 16:48:02 +0200 Subject: [U-Boot] uboot/odroid test report In-Reply-To: References: <53C7E4DF.4020404@samsung.com> Message-ID: <53C933A2.1070004@samsung.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Daniel, On 07/17/2014 05:35 PM, Daniel Drake wrote: > On Thu, Jul 17, 2014 at 3:59 PM, Przemyslaw Marczak > wrote: >> So BL1, BL2 are running in iRAM(required small size), and u-boot is running >> from a RAM. >> >> The main reason for using existing BL1 and BL2 binaries is >> that bl1 and bl2 are just working proper. > > Fair enough, I was just a bit worried/curious that bl2 is only working > "by accident", and we have some strange mashup of 2 uboot versions > involved in the boot process. > >> I will check it tomorrow but it has works on Ubuntu. >> The bootz command takes only 2 arguments here -> ${image_addr} >> ${ramdisk_addr} which are the numbers set by: >> "run check_dtb" and "run check_ramdisk" > > Maybe I made a mistake in my testing then, either way I've moved onto > a custom boot script now. > > But just to clarify the bootz usage.. > > image_addr is defined as: > setenv image_addr ${kerneladdr} - ${fdtaddr}; > > so with > bootz ${image_addr} ${ramdisk_addr}; > > you are actually passing > bootz ${kerneladdr} - ${fdtaddr} ${ramdisk_addr}; > > Maybe it works for you, although the documentation suggests its usage > is not quite like that: > static char bootz_help_text[] = > "[addr [initrd[:size]] [fdt]]\n" > " - boot Linux zImage stored in memory\n" > "\tThe argument 'initrd' is optional and specifies the address\n" > "\tof the initrd in memory. The optional argument ':size' allows\n" > "\tspecifying the size of RAW initrd.\n" > #if defined(CONFIG_OF_LIBFDT) > "\tWhen booting a Linux kernel which requires a flat device-tree\n" > "\ta third argument is required which is the address of the\n" > "\tdevice-tree blob. To boot that kernel without an initrd image,\n" > "\tuse a '-' for the second argument. If you do not pass a third\n" > "\ta bd_info struct will be passed instead\n" > #endif > ""; > #endif > > Daniel > You were right. I made a mistake, but even that - the ramdisk for ubuntu was loaded - because of kernel without fdt. Thank you for testing, I will fix this and send the patches again. Regards, -- Przemyslaw Marczak Samsung R&D Institute Poland Samsung Electronics p.marczak at samsung.com