[U-Boot] A23 u-boot with SPL / dram init available in my personal git repo

Ricky Xian szricky at gmail.com
Mon Dec 15 07:01:29 CET 2014


Hi,

I'm trying to boot from usb fel mode on A23. I have rebuilt your sunxi-wip 
branch, and try to run on my A23 (q88?) board, but it's failed in fel mode 
in executing.

I think the u-boot-spl.bin can be used as A20, this's the website I refer 
to: 
http://docs.cubieboard.org/tutorials/cb2/development/booting_from_usb_in_fel_mode

my testing instructions are:

fel write address  u-boot-spl.bin
fel exec address

the address for A20 is 0x2000, so that the DRAM will be initialized. but 
it's incorrect for A23 if the size reach 0x4000. 

can you please let me know how to use fel and your u-boot-spl.bin? 

Thanks!
Ricky


On Sunday, December 14, 2014 5:44:18 PM UTC+8, Hans de Goede wrote:
>
> Hi, 
>
> On 13-12-14 17:07, Chen-Yu Tsai wrote: 
> > Hi, 
> > 
> > On Sat, Dec 13, 2014 at 9:58 PM, Hans de Goede <hdeg... at redhat.com 
> <javascript:>> wrote: 
> >> Hi, 
> >> 
> >> On 09-12-14 13:31, Chen-Yu Tsai wrote: 
> >> 
> >> <snip> 
> >> 
> >>> Also I have a schematic file for A23 that someone provided me. 
> >>> I don't remember who... 
> >>> 
> >>> It lists: 
> >>>     - ALDO2 connected to VCC-DLL @ 2.5V 
> >>>     - ALDO3 to VCC-PLL and AVCC (analog power) @ 3.0V 
> >>>     - DCDC1 to all the normal stuff @ 3V 
> >>>     - DCDC2 to VDD-SYS @ 1.1V 
> >>>     - DCDC3 to VDD-CPU (main cpu) @ 1.1V (1.26V in my fex file) 
> >>>     - DCDC5 to VCC-DRAM @ 1.1V (1.5V in my fex file) 
> >>>     - DC5LDO to VDD-CPUS (special cpu) 
> >> 
> >> 
> >> Thanks for this info! 
> >> 
> >> I've prepared a sun8i / A23 set for u-boot which I'll send upstream 
> >> as soon as I've verified that it does not break A31 support. 
> >> 
> >> One thing which I've done is make u-boot explicitly disable power 
> >> outputs which are unused, the specific target for this is DCDC4 
> >> which is enabled by default at power on and not used on sun8i. 
> >> 
> >> As a side effect this also disabled ALDO1 which is enabled at power 
> >> on too, and guess what, promptly my sdcard stopped working. 
> >> 
> >> So it seems that ALDO1 is hookedup to the sdcard on the Ippo 
> >> tablets, for now I've also enabled ALDO1 in the defconfig for V5, it 
> would 
> >> be great if you could give my current sunxi-wip branch a try on your 
> >> V5 tablet, and if it works remove the setting of ALDO1 from the V5 
> >> defconfig and then try again. If it is like my V1.2 then it will 
> >> stop booting when the SPL tries to load u-boot from the sdcard. 
> > 
> > I missed that one. ALDO1 is connected to VCC-IO (pin controller I 
> think), 
> > VCC-PD (whatever that is, it isn't on the datasheet, but the schematic 
> > implies it's part of the LCD block), VCC-USB (USB block in the SoC), 
> > VCC-IO-WIFI (pull-ups and stuff for mmc wifi), and HPVCC (builtin 
> > headphone amp). 
>
> Thanks for the info. Weird thing is it is not listed in the fex, and 
> android on my Ippo Q8H v1.2 seems to set it to 2.5 volt, which is somewhat 
> lowish, it is below the minimum recommended voltage for Vusb (which is 
> 2.7) 
> and way below the minimum recommended voltage for HPVCC which is 3.0, 
> according to the A31 datasheet (the A23 datasheet does not list it). 
>
> I've updated the defconfigs to set ALDO1 to 3.0 V and gave them a comment 
> to explain to which voltages it is connected. 
>
> As for VCC-PD it is in the A23 datasheet, in the "pin description" chapter 
> under GPIO-D, it powers the port D gpio pins. 
>
> Regards, 
>
> Hans 
>


More information about the U-Boot mailing list