Re: [U-Boot] imx27lite
Thank you for answer, unfortunately I don't have a JTAG and don't know if there is some ISP programming possibility, yet. I will try to find it out. regards Jan Dne Fri, 01 Jul 2011 16:32:09 +0200 Fabio Estevam napsal(a): > On Fri, Jul 1, 2011 at 11:15 AM, Jan Pohanka wrote: >> Hello, >> has anybody u-boot running on i.mx27 litekit from LogicPD, please? I >> have >> this board with Logic Loader 2.4.9. I'm more familiar with uBoot so I >> wanted to try it on the desk. Compilation from actual master runs >> without >> any problem, but unfortunately it does not run after loading with lolo >> my commands were > > Why don't you erase Lolo and flash U-boot into flash? > > Regards, > > Fabio Estevam -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/ ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] imx27lite
Hello, has anybody u-boot running on i.mx27 litekit from LogicPD, please? I have this board with Logic Loader 2.4.9. I'm more familiar with uBoot so I wanted to try it on the desk. Compilation from actual master runs without any problem, but unfortunately it does not run after loading with lolo my commands were load load elf /tftp/10.0.0.1:u-boot > loading from /tftp/10.0.0.1:u-boot: > ... > ELF section 0: download address: 0xa0208000 load address: 0xc000 > loaded 238792 @ 0xc000 Flash > ...done exec - -> now the LoLo started again Could you please give me any help, please? best regards Jan -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/ ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] at91sam9260ek and mmc
Dear Reinhard, during last week I have been trying to make sd card in u-boot working on at91sam9260ek, unfortunately without success. I have posted some details in this post on the mailing list http://lists.denx.de/pipermail/u-boot/2011-June/093666.html I'm almost sure that it is not a hardware issue, because in Linux booted from nand flash sd works like a charm, even mounting rootfs on the sd is possible. You stated, that you have sd card working in your development branch, could you share it, please? It seems I'm not able to fix it by myself :( with best regards Jan Dne Mon, 30 May 2011 21:07:37 +0200 Reinhard Meyer napsal(a): > Dear Jan Pohanka, > >> I'm trying to get u-boot 2010.12 working on at91sam9260ek devkit with >> mmc support. I have read several discussions here and followed the >> steps described in README.atmel-mci. (my config and board file are >> below...) > > 2010.12 is outdated. Use current top of tree. Besides I have a mmc > enabled > (and working) 9260ek port in my WIP branch that I will post soon. > >> There are two issues I'm facing. >> >> The first one: When I enable mmc support, the dataflash stops to work. >> According to info from boot process, dataflash is detected correctly, >> but no data can be read (environment) or written. > > Dataflash and MMC are mutually exclusive on the 9260ek. Only one should > be > enabled and used. > >> The second one: fatls command causes u-boot to freeze with following >> message > > You have to remove the CS jumper to the dataflash chip, otherwise you get > contention between mmc and dataflash hardware. > > Reinhard -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/ ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] gen-atmel-mci driver bug?
Hello, I'm playing with mmc/sd card on a custom board with at91sam9g20 processor. U-boot v2011.3 now runs well as I added support for AT45DB041 dataflash, which is used on my board. It's size is only 512kB so I need sd card for Linux image and rootfs. Unfortunately I still can't get mmc/sd suport working. I have a micro sd (not hc) card connected to a MCI interface port A. It seems that it is correctly detected and initialized, U-Boot> mmcinfo mci: bus_hz is 132096000, setting clock 15 Hz, block size 512 mci: setting clock 258000 Hz, block size 512 mci: bus_hz is 132096000, setting clock 0 Hz, block size 512 mci: setting clock 258000 Hz, block size 512 mci: bus_hz is 132096000, setting clock 258000 Hz, block size 512 mci: setting clock 258000 Hz, block size 512 Device: mci Manufacturer ID: 3 OEM: 5344 Name: SU02G Tran Speed: 2500 Rd Block Len: 512 SD version 2.0 High Capacity: No Capacity: 1977614336 Bus Width: 4-bit U-Boot> fatinfo mmc 0 Interface: MMC Device 0: Vendor: Man 035344 Snr 413f90a9 Rev: 8.0 Prod: SU02G Type: Removable Hard Disk Capacity: 1886.0 MB = 1.8 GB (3862528 x 512) Partition 1: Filesystem: FAT16 " " but there is some problem with block reading. When I try to read 1 block using eg. mmc read 0 0xaddr 0 1 it works and correct data are returned, but when reading more blocks U-Boot> mmc read 0 0xaddr 0 3, U-Boot> mmc read 0 0x2000 5 3 MMC read: dev # 0, block # 5, count 3 ... mci: bus_hz is 132096000, setting clock 150002 mci: setting clock 258000 Hz, block size 512 mci: bus_hz is 132096000, setting clock 2500 Hz, block size 512 mci: setting clock 22016000 Hz, block size 512 mci: bus_hz is 132096000, setting clock 258000 Hz, block size 512 mci: setting clock 258000 Hz, block size 512 gen_atmel_mci: CMDR 000d1052 (18) ARGR 0a00 (SR: c0d7) XFER DTIP never unset, ignoring. the read function returns still the same data from the starting block (as I see from debug info) and it hangs then on polling while (!((status = readl(&mci->sr)) & MMCI_BIT(CMDRDY))); in gen-atmel-mci.c. I have tried to search the source of problem, but I was not successful yet. I'm not very familiar with u-boot code so I can be missing something obvious. Does please someone has any solution? Here is my config regarding mmc /* SD/MMC card */ #define CONFIG_MMC 1 #define CONFIG_GENERIC_MMC 1 #define CONFIG_GENERIC_ATMEL_MCI 1 #define CONFIG_ATMEL_MCI_PORTA 1 #define CONFIG_CMD_MMC 1 The same situation is on at91sam9260ek board, except that the card is on MCI port B. Reinhard Meyer stated that he has mmc working on this board... best regards Jan -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/ ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] at91sam9260ek and mmc
Hi Joey, 2011/5/31 Joey Oravec : > Hi - > > I don't know about the dataflash question, but search back on the mailing > lists for a few of my threads about mmc/sd. We ship a few sam9261 based > products and the controller has issues. If mmc/sd is critical to your > product you should try to replicate those tests. > I will check it, thanks. > The 9260 is ancient. For new designs you may want to look at a newer chip. > There are even pin compatible replacements for the 9260. Yes, my custom board is based on sam9g20 chip, but I tried u-boot on 9260ek first, because it was the only development board available for me and supported by u-boot. Now I have u-boot running on my board with mmc on port b, but it does not work yet, maybe I will success today... regards Jan > > -joey > > On 5/30/2011 4:34 AM, Jan Pohanka wrote: >> >> Hello, >> I'm trying to get u-boot 2010.12 working on at91sam9260ek devkit with >> mmc support. I have read several discussions here and followed the >> steps described in README.atmel-mci. (my config and board file are >> below...) >> There are two issues I'm facing. >> >> The first one: When I enable mmc support, the dataflash stops to work. >> According to info from boot process, dataflash is detected correctly, >> but no data can be read (environment) or written. >> >> RAM Configuration: >> Bank #0: 2000 64 MiB >> NAND: 256 MiB >> DataFlash:AT45DB642 >> Nb pages: 8192 >> Page Size: 1056 >> Size= 8650752 bytes >> Logical address: 0xD000 >> Area 0: D000 to D00041FF (RO) Bootstrap >> Area 1: D0004200 to D00083FF Environment >> Area 2: D0008400 to D0041FFF (RO) U-Boot >> Area 3: D0042000 to D0251FFF Kernel >> Area 4: D0252000 to D083 FS >> MMC: mci: 0 >> *** Warning - bad CRC, using default environment >> >> The second one: fatls command causes u-boot to freeze with following >> message >> U-Boot> mmc list >> mci: 0 >> U-Boot> mmc rescan 0 >> mci: setting clock 194000 Hz, block size 512 >> mci: setting clock 24832000 Hz, block size 512 >> mci: setting clock 194000 Hz, block size 512 >> mci: setting clock 194000 Hz, block size 512 >> mci: setting clock 24832000 Hz, block size 512 >> U-Boot> mmc part 0 >> mci: setting clock 194000 Hz, block size 512 >> mci: setting clock 24832000 Hz, block size 512 >> mci: setting clock 194000 Hz, block size 512 >> mci: setting clock 194000 Hz, block size 512 >> mci: setting clock 24832000 Hz, block size 512 >> >> Partition Map for MMC device 0 -- Partition Type: DOS >> >> Partition Start Sector Num Sectors Type >> 1 1 583679 e >> U-Boot> fatinfo mmc 0:1 >> Interface: MMC >> Device 0: Vendor: Man 035344 Snr 413f90a9 Rev: 8.0 Prod: SU02G >> Type: Removable Hard Disk >> Capacity: 1886.0 MB = 1.8 GB (3862528 x 512) >> Partition 1: Filesystem: FAT16 " " >> >> U-Boot> fatls mmc 0:1 >> gen_atmel_mci: CMDR 000d1052 (18) ARGR 00026200 (SR: c0d7) XFER >> DTIP never unset, ignoring >> >> I'm a newbie with u-boot, could please someone give me any hints where >> to start to make this working? >> >> best regards >> Jan >> >> /* >> * (C) Copyright 2007-2008 >> * Stelian Pop >> * Lead Tech Design >> * >> * Configuation settings for the AT91SAM9260EK& AT91SAM9G20EK boards. >> * >> * See file CREDITS for list of people who contributed to this >> * project. >> * >> * This program is free software; you can redistribute it and/or >> * modify it under the terms of the GNU General Public License as >> * published by the Free Software Foundation; either version 2 of >> * the License, or (at your option) any later version. >> * >> * This program is distributed in the hope that it will be useful, >> * but WITHOUT ANY WARRANTY; without even the implied warranty of >> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >> * GNU General Public License for more details. >> * >> * You should have received a copy of the GNU General Public License >> * along with this program; if not, write to the Free Software >> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, >> * MA 02111-1307 USA >> */ >> >> #ifndef __CONFIG_H >> #define __CONFIG_H >> >> >> #define CONFIG_AT91_LEGACY >> >> /* >> * WARNING: >> * The initial boot pr
Re: [U-Boot] at91sam9260ek and mmc
Thank you for answer, I have a custom board where SD and dataflash are not exclusive - I used 9260ek just for preliminary testing and did not check the schematics. 2011/5/30 Reinhard Meyer : > Dear Jan Pohanka, > >> I'm trying to get u-boot 2010.12 working on at91sam9260ek devkit with >> mmc support. I have read several discussions here and followed the >> steps described in README.atmel-mci. (my config and board file are >> below...) > > 2010.12 is outdated. Use current top of tree. Besides I have a mmc enabled > (and working) 9260ek port in my WIP branch that I will post soon. I have been able to successfully compile version 2011.3, but in current master there are many changes, which are not backwards compatible with 9260_ek config files and I have not fixed them yet. I'm looking forward to your post... regards Jan ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] at91sam9260ek and mmc
Hello, I'm trying to get u-boot 2010.12 working on at91sam9260ek devkit with mmc support. I have read several discussions here and followed the steps described in README.atmel-mci. (my config and board file are below...) There are two issues I'm facing. The first one: When I enable mmc support, the dataflash stops to work. According to info from boot process, dataflash is detected correctly, but no data can be read (environment) or written. RAM Configuration: Bank #0: 2000 64 MiB NAND: 256 MiB DataFlash:AT45DB642 Nb pages: 8192 Page Size: 1056 Size= 8650752 bytes Logical address: 0xD000 Area 0: D000 to D00041FF (RO) Bootstrap Area 1: D0004200 to D00083FF Environment Area 2: D0008400 to D0041FFF (RO) U-Boot Area 3: D0042000 to D0251FFF Kernel Area 4: D0252000 to D083 FS MMC: mci: 0 *** Warning - bad CRC, using default environment The second one: fatls command causes u-boot to freeze with following message U-Boot> mmc list mci: 0 U-Boot> mmc rescan 0 mci: setting clock 194000 Hz, block size 512 mci: setting clock 24832000 Hz, block size 512 mci: setting clock 194000 Hz, block size 512 mci: setting clock 194000 Hz, block size 512 mci: setting clock 24832000 Hz, block size 512 U-Boot> mmc part 0 mci: setting clock 194000 Hz, block size 512 mci: setting clock 24832000 Hz, block size 512 mci: setting clock 194000 Hz, block size 512 mci: setting clock 194000 Hz, block size 512 mci: setting clock 24832000 Hz, block size 512 Partition Map for MMC device 0 -- Partition Type: DOS Partition Start Sector Num Sectors Type 11 583679 e U-Boot> fatinfo mmc 0:1 Interface: MMC Device 0: Vendor: Man 035344 Snr 413f90a9 Rev: 8.0 Prod: SU02G Type: Removable Hard Disk Capacity: 1886.0 MB = 1.8 GB (3862528 x 512) Partition 1: Filesystem: FAT16 " " U-Boot> fatls mmc 0:1 gen_atmel_mci: CMDR 000d1052 (18) ARGR 00026200 (SR: c0d7) XFER DTIP never unset, ignoring I'm a newbie with u-boot, could please someone give me any hints where to start to make this working? best regards Jan /* * (C) Copyright 2007-2008 * Stelian Pop * Lead Tech Design * * Configuation settings for the AT91SAM9260EK & AT91SAM9G20EK boards. * * See file CREDITS for list of people who contributed to this * project. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA */ #ifndef __CONFIG_H #define __CONFIG_H #define CONFIG_AT91_LEGACY /* * WARNING: * The initial boot program needs to be adapted such that it loads U-boot * at the provided TEXT_BASE below. Note that the Atmel AT91-bootstrap loader * might be configured such that it loads U-boot at 0x23f0. But since * U-boot is now being relocated to the end of RAM, this will result in a * lockup during boot due to an overlap in the BSS segment. So, we choose a * safe load adress to begin with, namely 0x20a0 */ #define CONFIG_SYS_TEXT_BASE0x20a0 /* ARM asynchronous clock */ #define CONFIG_SYS_AT91_SLOW_CLOCK 32768/* slow clock xtal */ #define CONFIG_SYS_AT91_MAIN_CLOCK 18432000 /* main clock xtal */ #define CONFIG_SYS_HZ 1000 #define CONFIG_ARM926EJS 1 /* This is an ARM926EJS Core */ #ifdef CONFIG_AT91SAM9G20EK #define CONFIG_AT91SAM9G20 1 /* It's an Atmel AT91SAM9G20 SoC*/ #else #define CONFIG_AT91SAM9260 1 /* It's an Atmel AT91SAM9260 SoC*/ #endif #define CONFIG_AT91FAMILY #define CONFIG_ARCH_CPU_INIT #undef CONFIG_USE_IRQ /* we don't need IRQ/FIQ stuff */ #define CONFIG_CMDLINE_TAG/* enable passing of ATAGs */ #define CONFIG_SETUP_MEMORY_TAGS #define CONFIG_INITRD_TAG #define CONFIG_SKIP_LOWLEVEL_INIT /* general purpose I/O */ #define CONFIG_AT91_GPIO /* serial console */ #define CONFIG_ATMEL_USART #undef CONFIG_USART0 #undef CONFIG_USART1 #undef CONFIG_USART2 #define CONFIG_USART31 /* USART 3 is DBGU */ #define CONFIG_BAUDRATE 115200 #define CONFIG_SYS_BAUDRATE_TABLE {115200 , 19200, 38400, 57600, 9600 } /* SD/MMC card */ #define CONFIG_MMC 1 #define CONFIG_GENERIC_MMC 1 #define CONFIG_GENERIC_ATMEL_MCI1 #define CONFIG_ATMEL_MCI_PORTB 1 /*#define CONFIG_SYS_MMC_CD_PIN AT91_PIN_PC9*/ #define CONFIG_CMD_MMC 1 /* LED */ #define CONFIG_AT91_LED #define CONFIG_RED_LEDAT91_PIN_PA9 /* this