Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-11-05 Thread Alexandr Bochkarev
Hi, I have tried it, no success >>U-Boot SPL 2016.11-rc3-1-g9fa5bf3-dirty (Nov 05 2016 - 16:18:14) >>DRAM: 1024 MiB >>CPU: 91200Hz, AXI/AHB/APB: 3/2/2 >>Trying to boot from MMC1 >>mmc_load_image_raw_sector: mmc block read error >>SPL: failed to boot from all boot devices >>### ERROR ###

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-11-05 Thread Hans de Goede
Hi, On 04-11-16 23:57, Alexandr Bochkarev wrote: I have found problem place, this patch with hotfix allows to boot Allwinner A20 from eMMC. Dont know how to full fix it. Maxime posted a proper fix for this issue yesterday: https://patchwork.ozlabs.org/patch/691284/ Can you give that one a

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-11-04 Thread Alexandr Bochkarev
I have found problem place, this patch with hotfix allows to boot Allwinner A20 from eMMC. Dont know how to full fix it. commit 9fa5bf30e95ead17eb0c50375b305fb8615427a9 Author: root Date: Sat Nov 5 04:41:30 2016 +0600 allow to boot A20 from eMMC, fix diff --git

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-11-03 Thread Alexandr Bochkarev
Replace emmc to sd card, on sdc2 lines. Remove sd on sdc0, works like a charm, but with emmc not success >>U-Boot SPL 2016.11-rc1-g4dc34be (Nov 04 2016 - 03:06:54) >>DRAM: 1024 MiB >>CPU: 91200Hz, AXI/AHB/APB: 3/2/2 >>Trying to boot from MMC2 >>U-Boot 2016.11-rc1-g4dc34be (Nov 04 2016

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-11-03 Thread Alexandr Bochkarev
To exclude board factor, i get another board, Cubieboard2, desolder nand chip and put emmc on sdc2 lines. Boot kernel from sd on sdc0 lines, kernel init emmc well, in 4 bit mode So, some trouble in u-boot is exist, PLEASE HELP! U-Boot SPL 2016.11-rc1-g4dc34be My board - A20: U-Boot with my

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-11-03 Thread Alexandr Bochkarev
I have put external pullups on marsboard, boot from sd. Linux kernel init emmc fine, 4-bit width bus, so board works well Hit any key to stop autoboot: 2 ... 0 => mmc list SUNXI SD/MMC: 0 (SD) SUNXI SD/MMC: 1 => mmc dev 0 switch to partitions #0, OK mmc0 is current device => mmc part

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-11-03 Thread Alexandr Bochkarev
Some summary Marsboard by default has nand flash chip on sdc2 lines, but under nand chip, there is emmc bga pads also. So i have desoldered nand, and put emmc chip on it. Maybe there is no required pull ups on data lines to work on 4-bit widh, and when i boot kernel from sdc0 sd card, kernel

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-10-13 Thread Alexandr Bochkarev
So, this debug output. U-Boot SPL 2016.11-rc1-g4dc34be-dirty (Oct 13 2016 - 14:04:10) DRAM: 1024 MiB CPU: 91200Hz, AXI/AHB/APB: 3/2/2 Trying to boot from MMC2 init mmc 0 resource init mmc 0 clock and io mmc 0 set mod-clk req 2400 parent 2400 n 1 m 1 rate 2400 init mmc 2 resource

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-10-12 Thread Jaehoon Chung
On 10/13/2016 02:49 AM, Alexandr Bochkarev wrote: > I decided to check how linux kernel init emmc on marsboard, which i boot from > SD card > And i found, that it inited only in 1-bit mode, is it normal? it works, i can > edit files on it Well, it's not normal. It's possible to use only 1bit

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-10-12 Thread Jaehoon Chung
On 10/12/2016 11:03 PM, Alexandr Bochkarev wrote: > >> >> define debug() in your mmc driver..or enable CONFIG_DEBUG..then you can see >> all debug message. >> > > When i define CONFIG_DEGUB, u-boot binary size is to large for a20 sram > I have tried to disable unused features in config, but its

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-10-12 Thread Alexandr Bochkarev
I decided to check how linux kernel init emmc on marsboard, which i boot from SD card And i found, that it inited only in 1-bit mode, is it normal? it works, i can edit files on it linux set eMMC(sdc2) to mmc0 SD(sdc0) to mmc1 # cat /sys/kernel/debug/mmc0/ioseMMC clock: 5200

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-10-12 Thread Alexandr Bochkarev
> > define debug() in your mmc driver..or enable CONFIG_DEBUG..then you can see > all debug message. > When i define CONFIG_DEGUB, u-boot binary size is to large for a20 sram I have tried to disable unused features in config, but its not enough > > If you're setting MMC_MODE_8BIT..try to

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-10-12 Thread Jaehoon Chung
On 10/12/2016 10:11 PM, Alexandr Bochkarev wrote: > Now i boot marsboard from sd card with new config Good. > > => mmc list > SUNXI SD/MMC: 0 (SD) > SUNXI SD/MMC: 1 > > => mmc info > Device: SUNXI SD/MMC > Manufacturer ID: 2 > OEM: 544d > Name: SA04G > Tran Speed: 5000 > Rd Block Len: 512

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-10-12 Thread Alexandr Bochkarev
Now i boot marsboard from sd card with new config => mmc list SUNXI SD/MMC: 0 (SD) SUNXI SD/MMC: 1 => mmc info Device: SUNXI SD/MMC Manufacturer ID: 2 OEM: 544d Name: SA04G Tran Speed: 5000 Rd Block Len: 512 SD version 3.0 High Capacity: Yes Capacity: 3.6 GiB Bus Width: 4-bit Erase Group

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-10-12 Thread Alexandr Bochkarev
Now i found and add 2 in mmc_extra_slot_number config, compile and burn on marsboard emmc(sdc2) Got absolutely the same output, as from my board, except mmc number U-Boot SPL 2016.11-rc1-g4dc34be-dirty (Oct 12 2016 - 18:48:07) DRAM: 1024 MiB CPU: 91200Hz, AXI/AHB/APB: 3/2/2 Trying to boot

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-10-12 Thread Alexandr Bochkarev
> I understood more clearly...Your target for using is sdc0(eMMC), right? Yes Now i have checked det pin on my board. I use standart A20-OLinuXino-Lime_defconfig with my board. So PH1 is pull-fown. No changes if just remove det pin U-Boot SPL 2016.11-rc1-g4dc34be-dirty (Oct 12 2016 - 18:12:37)

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-10-12 Thread Jaehoon Chung
On 10/12/2016 09:11 PM, Alexandr Bochkarev wrote: > On marsboard today i used 2014 u-boot, sd card on sdc0 hardware lines and > emmc on sdc2 hardware lines. > and get error "Card did not respond to voltage select!» , then i tried to > boot without sd card, only with emmc on sdc2 > > On my board

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-10-12 Thread Alexandr Bochkarev
On marsboard today i used 2014 u-boot, sd card on sdc0 hardware lines and emmc on sdc2 hardware lines. and get error "Card did not respond to voltage select!» , then i tried to boot without sd card, only with emmc on sdc2 On my board i used mainline u-boot, emmc on sdc0 hardware lines. And get

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-10-12 Thread Jaehoon Chung
Added Hans (sunxi maintainer) On 10/12/2016 08:25 PM, Alexandr Bochkarev wrote: >> This log means that there is no card on slot.. > But then i tried my board with mainline u-boot, emmc was on sdc0 lines. > > Now i tried, boot marsboard from sd, hit button to stop kernel loading. > sun7i# mmc

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-10-12 Thread Alexandr Bochkarev
> This log means that there is no card on slot.. But then i tried my board with mainline u-boot, emmc was on sdc0 lines. Now i tried, boot marsboard from sd, hit button to stop kernel loading. sun7i# mmc list SUNXI SD/MMC: 0 Looks like its doesnt see emmc on sdc2. sun7i# printenv Environment

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-10-12 Thread Jaehoon Chung
On 10/12/2016 07:52 PM, Alexandr Bochkarev wrote: > In order to exclude possible errors on my board, i get MarsBoard A20 Lite, > desolder nand, and put on emmc pads my emmc flash. > So emmc is on sdc2 lines. When iam booting from sd on sdc1, linux kernel can > init emmc, and i got /dev/mmcblkp1,

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-10-12 Thread Alexandr Bochkarev
In order to exclude possible errors on my board, i get MarsBoard A20 Lite, desolder nand, and put on emmc pads my emmc flash. So emmc is on sdc2 lines. When iam booting from sd on sdc1, linux kernel can init emmc, and i got /dev/mmcblkp1, works well. But when i eject sd and try to boot from sdc2

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-10-07 Thread Alexandr Bochkarev
Hi! Very appreciate your help! Hope we will fix it, because my board will be garbage without emmc ( So, my steps: git clone git://git.denx.de/u-boot.git --depth 1; cd u-boot; make CROSS_COMPILE=arm-linux-gnueabihf- A20-OLinuXino-Lime_defconfig make CROSS_COMPILE=arm-linux-gnueabihf- Also turn

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-10-06 Thread Jaehoon Chung
On 10/03/2016 02:39 AM, AneoX wrote: > Emmc Card was the new one, so i just burn a dump of working sd. Previously > sd have been wired to board for test. > > Board is a custom, like olinuxino lime which with nand and sd slot, 512 mb > ram. So i using it defconfig and in case of sd card, it

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-10-03 Thread Maxime Ripard
Hi Jaehoon, On Tue, Sep 20, 2016 at 08:10:52AM +0900, Jaehoon Chung wrote: > > So I've been on the same issue for the last couple of days. > > > > Since that board is already supported, adding support for the eMMC > > basically came down to that patch on top of 2016.09-rc2. >

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-10-02 Thread AneoX
Like a sd card. I have emmc to sd adapter, so dd if=u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1024 seek=8 and then just solder emmc to my board. 2 окт. 2016 г. 23:08 пользователь "Jagan Teki" написал: On Sun, Oct 2, 2016 at 7:13 PM, Alexandr Bochkarev

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-10-02 Thread AneoX
Emmc Card was the new one, so i just burn a dump of working sd. Previously sd have been wired to board for test. Board is a custom, like olinuxino lime which with nand and sd slot, 512 mb ram. So i using it defconfig and in case of sd card, it works. Emmc lines has external pullups according to

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-10-02 Thread Alexandr Bochkarev
Already tried. The same output: > mmc_load_image_raw_sector: mmc block read error > SPL: failed to boot from all boot devices > ### ERROR ### Please RESET the board ### > 2 окт. 2016 г., в 19:38, Jagan Teki написал(а): > > On Sun, Oct 2, 2016 at 1:07 PM, Alexandr

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-10-02 Thread Jagan Teki
On Sun, Oct 2, 2016 at 10:45 PM, AneoX wrote: > Like a sd card. I have emmc to sd adapter, so > > dd if=u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1024 seek=8 I guess you cleaned[1] the card before doing this? > > and then just solder emmc to my board. OK, which a20 board?

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-10-02 Thread Jagan Teki
On Sun, Oct 2, 2016 at 7:13 PM, Alexandr Bochkarev wrote: > Already tried. The same output: > > mmc_load_image_raw_sector: mmc block read error > SPL: failed to boot from all boot devices > ### ERROR ### Please RESET the board ### Need few more info, how exactly you wrote

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-10-02 Thread Jagan Teki
On Sun, Oct 2, 2016 at 1:07 PM, Alexandr Bochkarev wrote: > Hi! > > I am trying to boot my A20 board from eMMC KLM4G1FE3B-B001, but has no > success. > Commenting mmc_change_freq has no effect. > U-Boot 2016.03 just says Could not determine boot source > > I have found,

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-10-02 Thread Alexandr Bochkarev
Hi! I am trying to boot my A20 board from eMMC KLM4G1FE3B-B001, but has no success. Commenting mmc_change_freq has no effect. U-Boot 2016.03 just says Could not determine boot source I have found, that it stucks in sunxi_mmc_has_egon_boot_signature. int

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-09-21 Thread Maxime Ripard
Hi Jaehoon, On Tue, Sep 20, 2016 at 08:10:52AM +0900, Jaehoon Chung wrote: > On 09/19/2016 10:17 PM, Maxime Ripard wrote: > > On Wed, Sep 14, 2016 at 12:05:19PM +0200, Hans de Goede wrote: > >> Hi, > >> > >> On 13-09-16 13:50, Maxime Ripard wrote: > >>> Hi, > >>> > >>> On Mon, Sep 12, 2016 at

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-09-19 Thread Jaehoon Chung
Hi, On 09/19/2016 10:17 PM, Maxime Ripard wrote: > On Wed, Sep 14, 2016 at 12:05:19PM +0200, Hans de Goede wrote: >> Hi, >> >> On 13-09-16 13:50, Maxime Ripard wrote: >>> Hi, >>> >>> On Mon, Sep 12, 2016 at 04:47:49PM +0200, Hans de Goede wrote: On 12-09-16 15:56, Maxime Ripard wrote: >

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-09-19 Thread Hans de Goede
HI, On 19-09-16 15:17, Maxime Ripard wrote: On Wed, Sep 14, 2016 at 12:05:19PM +0200, Hans de Goede wrote: Hi, On 13-09-16 13:50, Maxime Ripard wrote: Hi, On Mon, Sep 12, 2016 at 04:47:49PM +0200, Hans de Goede wrote: On 12-09-16 15:56, Maxime Ripard wrote: Hi, On Mon, Sep 12, 2016 at

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-09-19 Thread Maxime Ripard
On Wed, Sep 14, 2016 at 12:05:19PM +0200, Hans de Goede wrote: > Hi, > > On 13-09-16 13:50, Maxime Ripard wrote: > >Hi, > > > >On Mon, Sep 12, 2016 at 04:47:49PM +0200, Hans de Goede wrote: > >>On 12-09-16 15:56, Maxime Ripard wrote: > >>>Hi, > >>> > >>>On Mon, Sep 12, 2016 at 01:53:24PM +0200,

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-09-15 Thread Maxime Ripard
Hi, On Wed, Sep 14, 2016 at 12:05:19PM +0200, Hans de Goede wrote: > Hi, > > On 13-09-16 13:50, Maxime Ripard wrote: > >Hi, > > > >On Mon, Sep 12, 2016 at 04:47:49PM +0200, Hans de Goede wrote: > >>On 12-09-16 15:56, Maxime Ripard wrote: > >>>Hi, > >>> > >>>On Mon, Sep 12, 2016 at 01:53:24PM

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-09-14 Thread Hans de Goede
Hi, On 13-09-16 13:50, Maxime Ripard wrote: Hi, On Mon, Sep 12, 2016 at 04:47:49PM +0200, Hans de Goede wrote: On 12-09-16 15:56, Maxime Ripard wrote: Hi, On Mon, Sep 12, 2016 at 01:53:24PM +0200, Ciprian Manea wrote: I'm using a SinA33 dev board (Allwinner a33 SoC) and at the moment I'm

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-09-13 Thread Maxime Ripard
Hi, On Mon, Sep 12, 2016 at 04:47:49PM +0200, Hans de Goede wrote: > On 12-09-16 15:56, Maxime Ripard wrote: > >Hi, > > > >On Mon, Sep 12, 2016 at 01:53:24PM +0200, Ciprian Manea wrote: > >>I'm using a SinA33 dev board (Allwinner a33 SoC) and at the moment > >>I'm trying to boot from the eMMC. >

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-09-12 Thread Hans de Goede
Hi, On 12-09-16 15:56, Maxime Ripard wrote: Hi, On Mon, Sep 12, 2016 at 01:53:24PM +0200, Ciprian Manea wrote: I'm using a SinA33 dev board (Allwinner a33 SoC) and at the moment I'm trying to boot from the eMMC. But it fails in the following way: *Got the following error at boot time:*

Re: [U-Boot] [bug report] sunxi: booting from eMMC

2016-09-12 Thread Maxime Ripard
Hi, On Mon, Sep 12, 2016 at 01:53:24PM +0200, Ciprian Manea wrote: > I'm using a SinA33 dev board (Allwinner a33 SoC) and at the moment > I'm trying to boot from the eMMC. > > But it fails in the following way: > > > *Got the following error at boot time:* > *U-Boot SPL

[U-Boot] [bug report] sunxi: booting from eMMC

2016-09-12 Thread Ciprian Manea
Hi, I'm using a SinA33 dev board (Allwinner a33 SoC) and at the moment I'm trying to boot from the eMMC. But it fails in the following way: *Got the following error at boot time:* *U-Boot SPL 2016.09-rc2-00125-g6e8b42f (Sep 08 2016 - 11:00:46) DRAM: 1024 MiB Trying to boot from MMC2 MMC