Re: Toradex Colibri, problem with eboot
Christian Gagneraud <[email protected]>
| Newsgroups | gmane.linux.ports.arm.general |
|---|---|
| Message-ID | <[email protected]> |
Dennis Semakin wrote: > Hi >> Sorry, ask Toradex, this is the windows bootloader problem, not linux problem. > Yes, I understand this, and already have written to them, but no answer... > >> Installing the uboot is simple -- dd it to mtd0 > There are problems with it. > First: I have no such device '/dev/mtdblock0'. Why? I yet don't know. > All necessary CONFIG's in kernel .config-file I think is 'y'. > $ cat .config | grep MTD > CONFIG_ARCH_MTD_XIP=y > CONFIG_MTD=y > # CONFIG_MTD_DEBUG is not set > # CONFIG_MTD_CONCAT is not set > CONFIG_MTD_PARTITIONS=y > # CONFIG_MTD_TESTS is not set > # CONFIG_MTD_REDBOOT_PARTS is not set > # CONFIG_MTD_CMDLINE_PARTS is not set > # CONFIG_MTD_AFS_PARTS is not set > # CONFIG_MTD_AR7_PARTS is not set > # CONFIG_MTD_CHAR is not set > # CONFIG_MTD_BLKDEVS is not set I think you need these 2: MTD char and block device support. Regards, Chris > # CONFIG_MTD_BLOCK is not set > # CONFIG_MTD_BLOCK_RO is not set > # CONFIG_MTD_OOPS is not set > # CONFIG_MTD_CFI is not set > # CONFIG_MTD_JEDECPROBE is not set > CONFIG_MTD_MAP_BANK_WIDTH_1=y > CONFIG_MTD_MAP_BANK_WIDTH_2=y > CONFIG_MTD_MAP_BANK_WIDTH_4=y > # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set > # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set > # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set > CONFIG_MTD_CFI_I1=y > CONFIG_MTD_CFI_I2=y > # CONFIG_MTD_CFI_I4 is not set > # CONFIG_MTD_CFI_I8 is not set > # CONFIG_MTD_RAM is not set > # CONFIG_MTD_ROM is not set > # CONFIG_MTD_ABSENT is not set > # CONFIG_MTD_COMPLEX_MAPPINGS is not set > # CONFIG_MTD_PLATRAM is not set > # Self-contained MTD device drivers > # CONFIG_MTD_DATAFLASH is not set > # CONFIG_MTD_M25P80 is not set > # CONFIG_MTD_SLRAM is not set > # CONFIG_MTD_PHRAM is not set > # CONFIG_MTD_MTDRAM is not set > # CONFIG_MTD_BLOCK2MTD is not set > # CONFIG_MTD_DOC2000 is not set > # CONFIG_MTD_DOC2001 is not set > # CONFIG_MTD_DOC2001PLUS is not set > CONFIG_MTD_NAND=y > # CONFIG_MTD_NAND_VERIFY_WRITE is not set > # CONFIG_MTD_NAND_ECC_SMC is not set > # CONFIG_MTD_NAND_MUSEUM_IDS is not set > # CONFIG_MTD_NAND_H1900 is not set > # CONFIG_MTD_NAND_GPIO is not set > CONFIG_MTD_NAND_IDS=y > # CONFIG_MTD_NAND_DISKONCHIP is not set > # CONFIG_MTD_NAND_SHARPSL is not set > CONFIG_MTD_NAND_PXA3xx=y > # CONFIG_MTD_NAND_PXA3xx_BUILTIN is not set > # CONFIG_MTD_NAND_NANDSIM is not set > # CONFIG_MTD_NAND_PLATFORM is not set > # CONFIG_MTD_ALAUDA is not set > # CONFIG_MTD_ONENAND is not set > # CONFIG_MTD_LPDDR is not set > # CONFIG_MTD_UBI is not set > > $ cat .config | grep JFFS > CONFIG_JFFS2_FS=y > CONFIG_JFFS2_FS_DEBUG=0 > CONFIG_JFFS2_FS_WRITEBUFFER=y > # CONFIG_JFFS2_FS_WBUF_VERIFY is not set > # CONFIG_JFFS2_SUMMARY is not set > # CONFIG_JFFS2_FS_XATTR is not set > # CONFIG_JFFS2_COMPRESSION_OPTIONS is not set > CONFIG_JFFS2_ZLIB=y > # CONFIG_JFFS2_LZO is not set > CONFIG_JFFS2_RTIME=y > # CONFIG_JFFS2_RUBIN is not set > > What else should I include? > Rootfs is mounted on SD-card (/dev/mmcblk0p1). > > Second: I have got u-boot from http://sourceforge.net/projects/u-boot/ > Apply patches from openpxa.sf.net > Then say 'make colibri_pxa320_config; make' and got error > //begin err > "arm-linux-uclibcgnueabi-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x5c040000 -I/home/den/Desktop/Tars/u-boot-2009.08/include -fno-builtin -ffreestanding -nostdinc -isystem /home/den/Desktop/Tars/buildroot-2009.08/build_arm/staging_dir/usr/bin/../lib/gcc/arm-linux-uclibcgnueabi/4.3.3/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-interwork -march=armv5te -mtune=xscale -Wall -Wstrict-prototypes -fno-stack-protector -o pxa_mmc.o pxa_mmc.c -c > pxa_mmc.c: In function 'mmc_legacy_init': > pxa_mmc.c:561: error: 'CKEN' undeclared (first use in this function) > pxa_mmc.c:561: error: (Each undeclared identifier is reported only once > pxa_mmc.c:561: error: for each function it appears in.) > pxa_mmc.c:561: error: 'CKEN12_MMC' undeclared (first use in this function)" > //end err > > There is condition in include/asm-arm/arch-pxa/pxa-regs.h file. > //Here is it: > #if defined(CONFIG_CPU_MONAHANS) > #define ACCR __REG(0x41340000) /* Application Subsystem Clock Configuration Register */ > #define ACSR __REG(0x41340004) /* Application Subsystem Clock Status Register */ > .. > .. > #else /* if defined CONFIG_CPU_MONAHANS */ > > #define CCCR __REG(0x41300000) /* Core Clock Configuration Register */ > #define CKEN __REG(0x41300004) /* Clock Enable Register */ > #define OSCC __REG(0x41300008) /* Oscillator Configuration Register */ > .. > .. > //end > I just comment (I know this is not very clever solution) '#else /* if defined CONFIG_CPU_MONAHANS */' > and everything has compilied. > Size of u-boot.img was 73 Kb. Of course, it doesn't work. I didn't see any driver compilation process, there are no objects files in appropriate directorys. What did I do wrong? Where can I read about this? > > Thanks. > ________________________ >> > linux-arm mailing list >> > [email protected] >> > http://lists.infradead.org/mailman/listinfo/linux-arm >> > >> >> > > _______________________________________________ > linux-arm mailing list > [email protected] > http://lists.infradead.org/mailman/listinfo/linux-arm