am335x questions

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

 



I'm porting an am335x based board. We have systems either with 256MB
or 512MB RAM. Currently I'm using following code:

ENTRY_FUNCTION(start_am33xx_baltos_sdram, r0, r1, r2)
{
        uint32_t sdram_size;
        void *fdt;

        sdram_size = SZ_256M;
        fdt = __dtb_am335x_baltos_minimal_start;

        fdt -= get_runtime_offset();

        barebox_arm_entry(0x80000000, sdram_size, fdt);
}

This way I always have 256MB "detected" regardless of the used
hardware. Is it possible to let Barebox autodetect RAM size like it is
done in U-Boot?

Another question concerns booting medium. Whether I start from NAND or
MMC I always want to be able to boot from MMC too. Now, if I boot
Barebox from NAND I can see following in devinfo output:

 `-- 48060000.mmc
         `-- mmc0

How can I make system enumerate MMC partition, so that I can mount
them? "detect mmc0" doesn't help.

When booting completely from MMC, mmco will be enumerated.

Yegor

_______________________________________________
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