Re: command bootu to start kernel

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

 



On Fri, Oct 29, 2010 at 2:36 PM, Juergen Beisert <jbe@xxxxxxxxxxxxxx> wrote:
> Belisko Marek wrote:
>> On Fri, Oct 29, 2010 at 11:26 AM, Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx>
> wrote:
>> > On 10/29/2010 11:21 AM, Belisko Marek wrote:
>> >>>>> do you have a "MEM=32" on your command line?
>> >>>>
>> >>>> Well I add it but same result:
>> >>>
>> >>> BTW: It must be "mem=", in lowercase, but you did this.
>> >>>
>> >>> What I was meant to ask was, if you forget to add the "M" to "32".
>> >>> Because with mem=32 you tell Linux just to use 32 bytes of memory.
>> >>> Maybe your ATAGs are broken, Linux might not see the whole RAM or any
>> >>> if it.
>> >>
>> >> yes it was typo I forgot put M after 32. Kernel now properly boot :).
>> >
>> > How much RAM you you have? Adjust mem= accordingly.
>>
>> Have 64M I will adjust.
>>
>> >> U-boot somehow
>> >> add kernel this parameter? Because for u-boot I don't need to set this
>> >> parameter.
>> >
>> > Nope - u-boot and barebox set up this information in the ATAG list.
>> > Seems something is broken with your ATAG list.
>>
>> Could be a problem thats I load barebox directly to ram and run it and
>> then RAM size isn't probed
>> and correctly set in atags?
>
> No, you need something like that:
>
> [...]
> static struct memory_platform_data ram_pdata = {
>    Â.name      = "ram0",
>    Â.flags     Â= DEVFS_RDWR,
> };
>
> struct device_d mini_sdram_dev = {
>    Â.id       = -1,
>    Â.name      = "mem",
>    Â.map_base    = CS6_BASE,
>    Â.size      = 64 * 1024 * 1024,
> Â Â Â Â.platform_data Â= &ram_pdata,
> };
Suppose similar must be done for a9m24xx boards?
>
> [...]
>
> static int mini2440_devices_init(void)
> {
> [...]
> Â Â Â Âregister_device(&mini2440_sdram_dev);
> [...]
> Â Â Â Âarmlinux_add_dram(&mini2440_sdram_dev);
> [...]
> }
>
> jbe
>
> --
> Pengutronix e.K.               Â| Juergen Beisert       |
> Linux Solutions for Science and Industry   Â| Phone: +49-8766-939 228   |
> Vertretung Sued/Muenchen, Germany       | Fax:  +49-5121-206917-5555 |
> Amtsgericht Hildesheim, HRA 2686 Â Â Â Â Â Â Â| http://www.pengutronix.de/ Â|
>

thanks,

marek

-- 
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
icq: 290551086
web: http://open-nandra.com

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux