On Wednesday, January 22, 2014 11:06:18 AM UTC-5, Luc Verhaegen wrote:
> On Wed, Jan 22, 2014 at 04:52:27PM +0100, Luc Verhaegen wrote:
> 
> > On Wed, Jan 22, 2014 at 10:40:49AM -0500, ferar achkar wrote:
> 
> > > greetings Luc,
> 
> > > I am trying to build a boot-able SD card i.e.  
> 
> > > *u-boot-sunxi-with-spl.bin* based on u-boot-sunxi source tree, for an  
> 
> > > INET-K70E board that has currently a working android, I have generated  
> 
> > > *u-boot-sunxi-with-spl.bin *based on your INet_K70HC board cfg, but it  
> 
> > > did not boot, can you please advise on how you populated struct  
> 
> > > dram_para in 'board/sunxi/dram_inet_k70hc.c' file:
> 
> > >
> 
> > > static struct dram_para dram_para = {  /// for INet_K70HC board as  
> 
> > > authored by Luc Verhaegen <[email protected]>  2014-01-02 06:37:24
> 
> > >     .clock = 384,
> 
> > >     .type = 3,
> 
> > >     .rank_num = 1,
> 
> > >     .density = 4096,
> 
> > >     .io_width = 16,
> 
> > >     .bus_width = 32,
> 
> > >     .cas = 9,
> 
> > >     .zq = 0x12331a7f,
> 
> > >     .odt_en = 0,
> 
> > >     .size = 1024,
> 
> > >     .tpr0 = 0x42d899b7,
> 
> > >     .tpr1 = 0xa090,
> 
> > >     .tpr2 = 0x22a00,
> 
> > >     .tpr3 = 0,
> 
> > >     .tpr4 = 1,
> 
> > >     .tpr5 = 0,
> 
> > >     .emr1 = 0x4,
> 
> > >     .emr2 = 0x10,
> 
> > >     .emr3 = 0,
> 
> > > };
> 
> > >
> 
> > > since the i have used the same script.bin currently on the nand flash, i  
> 
> > > am not sure, but i think the dram_para values for INet_K70HC are not  
> 
> > > correct for the  INET-K70E board (below is a snapshot of the board).
> 
> > > much appreciated,
> 
> > > ferar
> 
> > 
> 
> > Do not send emails to people directly, especially when they are general 
> 
> > sunxi questions. Use the mailing list.
> 
> > 
> 
> > "it did not boot" could be a great many things. Attach serial and find 
> 
> > out.
> 
> > 
> 
> > The image attached shows only a tiny part of the board. So it usually 
> 
> > would not be very useful to begin with.
> 
> > 
> 
> > But... Even with this small part of the board visible, it is clear that 
> 
> > this is a completely different board from the k70hc. Please work through 
> 
> > the http://linux-sunxi.org/New_Device_howto meticulously before you do 
> 
> > anything else.
> 
> > 
> 
> > Luc Verhaegen.
> 
> 
> 
> Also, which of datawinds ubislates is this? Ubislate 3G7?
> 
> 
> 
> Luc Verhaegen.



On Wednesday, January 22, 2014 11:06:18 AM UTC-5, Luc Verhaegen wrote:
> On Wed, Jan 22, 2014 at 04:52:27PM +0100, Luc Verhaegen wrote:
> 
> > On Wed, Jan 22, 2014 at 10:40:49AM -0500, ferar achkar wrote:
> 
> > > greetings Luc,
> 
> > > I am trying to build a boot-able SD card i.e.  
> 
> > > *u-boot-sunxi-with-spl.bin* based on u-boot-sunxi source tree, for an  
> 
> > > INET-K70E board that has currently a working android, I have generated  
> 
> > > *u-boot-sunxi-with-spl.bin *based on your INet_K70HC board cfg, but it  
> 
> > > did not boot, can you please advise on how you populated struct  
> 
> > > dram_para in 'board/sunxi/dram_inet_k70hc.c' file:
> 
> > >
> 
> > > static struct dram_para dram_para = {  /// for INet_K70HC board as  
> 
> > > authored by Luc Verhaegen <[email protected]>  2014-01-02 06:37:24
> 
> > >     .clock = 384,
> 
> > >     .type = 3,
> 
> > >     .rank_num = 1,
> 
> > >     .density = 4096,
> 
> > >     .io_width = 16,
> 
> > >     .bus_width = 32,
> 
> > >     .cas = 9,
> 
> > >     .zq = 0x12331a7f,
> 
> > >     .odt_en = 0,
> 
> > >     .size = 1024,
> 
> > >     .tpr0 = 0x42d899b7,
> 
> > >     .tpr1 = 0xa090,
> 
> > >     .tpr2 = 0x22a00,
> 
> > >     .tpr3 = 0,
> 
> > >     .tpr4 = 1,
> 
> > >     .tpr5 = 0,
> 
> > >     .emr1 = 0x4,
> 
> > >     .emr2 = 0x10,
> 
> > >     .emr3 = 0,
> 
> > > };
> 
> > >
> 
> > > since the i have used the same script.bin currently on the nand flash, i  
> 
> > > am not sure, but i think the dram_para values for INet_K70HC are not  
> 
> > > correct for the  INET-K70E board (below is a snapshot of the board).
> 
> > > much appreciated,
> 
> > > ferar
> 
> > 
> 
> > Do not send emails to people directly, especially when they are general 
> 
> > sunxi questions. Use the mailing list.
> 
> > 
> 
> > "it did not boot" could be a great many things. Attach serial and find 
> 
> > out.
> 
> > 
> 
> > The image attached shows only a tiny part of the board. So it usually 
> 
> > would not be very useful to begin with.
> 
> > 
> 
> > But... Even with this small part of the board visible, it is clear that 
> 
> > this is a completely different board from the k70hc. Please work through 
> 
> > the http://linux-sunxi.org/New_Device_howto meticulously before you do 
> 
> > anything else.
> 
> > 
> 
> > Luc Verhaegen.
> 
> 
> 
> Also, which of datawinds ubislates is this? Ubislate 3G7?
> 
> 
> 
> Luc Verhaegen.



On Wednesday, January 22, 2014 11:06:18 AM UTC-5, Luc Verhaegen wrote:
> On Wed, Jan 22, 2014 at 04:52:27PM +0100, Luc Verhaegen wrote:
> 
> > On Wed, Jan 22, 2014 at 10:40:49AM -0500, ferar achkar wrote:
> 
> > > greetings Luc,
> 
> > > I am trying to build a boot-able SD card i.e.  
> 
> > > *u-boot-sunxi-with-spl.bin* based on u-boot-sunxi source tree, for an  
> 
> > > INET-K70E board that has currently a working android, I have generated  
> 
> > > *u-boot-sunxi-with-spl.bin *based on your INet_K70HC board cfg, but it  
> 
> > > did not boot, can you please advise on how you populated struct  
> 
> > > dram_para in 'board/sunxi/dram_inet_k70hc.c' file:
> 
> > >
> 
> > > static struct dram_para dram_para = {  /// for INet_K70HC board as  
> 
> > > authored by Luc Verhaegen <[email protected]>  2014-01-02 06:37:24
> 
> > >     .clock = 384,
> 
> > >     .type = 3,
> 
> > >     .rank_num = 1,
> 
> > >     .density = 4096,
> 
> > >     .io_width = 16,
> 
> > >     .bus_width = 32,
> 
> > >     .cas = 9,
> 
> > >     .zq = 0x12331a7f,
> 
> > >     .odt_en = 0,
> 
> > >     .size = 1024,
> 
> > >     .tpr0 = 0x42d899b7,
> 
> > >     .tpr1 = 0xa090,
> 
> > >     .tpr2 = 0x22a00,
> 
> > >     .tpr3 = 0,
> 
> > >     .tpr4 = 1,
> 
> > >     .tpr5 = 0,
> 
> > >     .emr1 = 0x4,
> 
> > >     .emr2 = 0x10,
> 
> > >     .emr3 = 0,
> 
> > > };
> 
> > >
> 
> > > since the i have used the same script.bin currently on the nand flash, i  
> 
> > > am not sure, but i think the dram_para values for INet_K70HC are not  
> 
> > > correct for the  INET-K70E board (below is a snapshot of the board).
> 
> > > much appreciated,
> 
> > > ferar
> 
> > 
> 
> > Do not send emails to people directly, especially when they are general 
> 
> > sunxi questions. Use the mailing list.
> 
> > 
> 
> > "it did not boot" could be a great many things. Attach serial and find 
> 
> > out.
> 
> > 
> 
> > The image attached shows only a tiny part of the board. So it usually 
> 
> > would not be very useful to begin with.
> 
> > 
> 
> > But... Even with this small part of the board visible, it is clear that 
> 
> > this is a completely different board from the k70hc. Please work through 
> 
> > the http://linux-sunxi.org/New_Device_howto meticulously before you do 
> 
> > anything else.
> 
> > 
> 
> > Luc Verhaegen.
> 
> 
> 
> Also, which of datawinds ubislates is this? Ubislate 3G7?
> 
> 
> 
> Luc Verhaegen.
=======================================
Thanks Luc, Following are the detailed steps i followed to create the SD card:

1. connected a serial console and booted to a working android then ran the 
a10-meminfo
    root@android:/ # a10-meminfo-static                                         
  
    dram_clk          = 408
    dram_type         = 3
    dram_rank_num     = 1
    dram_chip_density = 4096
    dram_io_width     = 16
    dram_bus_width    = 32
    dram_cas          = 9
    dram_zq           = 0x7f
    dram_odt_en       = 0
    dram_tpr0         = 0x42d899b7
    dram_tpr1         = 0xa090
    dram_tpr2         = 0x22a00
    dram_tpr3         = 0x0
    dram_emr1         = 0x4
    dram_emr2         = 0x10
    dram_emr3         = 0x0
    root@android:/ #
2. copy and pull script.bin from nanda partition
 
3. git clone -b sunxi https://github.com/linux-sunxi/u-boot-sunxi.git
    
4. followed the steps in 
http://linux-sunxi.org/U-Boot#Adding_a_new_device_to_U-Boot  and added :

[ +obj-$(CONFIG_INET_K70HC)    += dram_inet_k70e.o ] to board/sunxi/Makefile. 
[ +Active  arm armv7 sunxi     -  sunxi   INet_K70E   sun7i:INET_K70E,SPL ] to 
boards.cfg.
And finally created new file: board/sunxi/dram_inet_k70e.c based on 
board/sunxi/dram_inet_k70hc.c based on the Luc Verhaegen 's 
board/sunxi/dram_inet_k70hc.c, then update the values according to a10-meminfo 
output
    
5. compiled u-boot and got u-boot-sunxi-with-spl.bin :
~/sunxi/u-boot-sunxi> make -j4 INet_K70HC 
CROSS_COMPILE=/home/fachkar/lichee_a20/out/android/common/buildroot/external-toolchain/bin/arm-linux-gnueabi-
    
6. created two partitions on the sd card:  +16M partition and the partition is 
the remaining of 8 GB
    
7. copied script.bin and the extracted uImage to first partition of +16M on the 
SD card
    
8. Also on the +16MB partition created boot.cmd and boot.src as per 
http://linux-sunxi.org/Manual_build_howto . which contains:
    
setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait panic=10 
${extra}
fatload mmc 0 0x43000000 script.bin || ext2load mmc 0 0x43000000 script.bin
fatload mmc 0 0x48000000 uImage || ext2load mmc 0 0x48000000 boot/uImage
bootm 0x48000000
    
9. umount both partitions of the sd card and fused u-boot-sunxi-with-spl.bin:

sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdf bs=1024 seek=8

when trying to boot from sd card, LCD back light does not turn on, and nothing 
shows on console, any advise?
appreciated again

ferar

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to