Dne středa, 4. června 2014 22:02:15 UTC+2 Luc Verhaegen napsal(a):
> How you can use these is fully described in the new device howto link
> provided earlier.
> Luc Verhaegen,
I replace script.bin from downloaded firmware with script.bin from my player.
One ROM boot ok, but other still do not work.
Now I am trying to add support to u-boot.
I created new file dram_di-way_and_1.c:
...
static struct dram_para dram_para = {
.clock = 384,
.type = 3,
.rank_num = 1,
.density = 4096,
.io_width = 16,
.bus_width = 32,
.cas = 9,
.zq = 123,
.odt_en = 0,
.size = 1024,
.tpr0 = 0x42d899b7,
.tpr1 = 0xa090,
.tpr2 = 0x22a00,
.tpr3 = 0,
.tpr4 = 0,
.tpr5 = 0,
.emr1 = 0x4,
.emr2 = 0x10,
.emr3 = 0,
};
...
and added it to Makefile:
...
obj-$(CONFIG_A20_DI_WAY_AND_1) += dram_di-way_and_1.o
...
What might be in boards.cfg? I do not understand last column.
For example:
...
Active arm armv7 sunxi - sunxi
mk802 sun4i:MK802,SPL,NO_AXP
-
Active arm armv7 sunxi - sunxi
mk802-1gb sun4i:MK802_1GB,SPL,NO_AXP
-
Active arm armv7 sunxi - sunxi
mk802_a10s
sun5i:MK802_A10S,SPL,AXP152_POWER,STATUSLED=34
-
Active arm armv7 sunxi - sunxi
mk802ii_A20 sun7i:MK802II_A20,SPL
-
Active arm armv7 sunxi - sunxi
mk802ii sun4i:MK802II,SPL
...
What did I write to last column? Some devices have sun4i, sun7i,... How can I
determine this?
Second param is from Makefile? So if I have in Makefile
"(CONFIG_A20_DI_WAY_AND_1)" I should write second param: "A20_DI_WAY_AND_1"?
How can I determine other params such as "SPL,NO_AXP"?
There is my bootinfo.txt from fel:
4: Magic : eGON.BT1
10: Length : 425984
14: HSize : 376832
18: HEAD ver :
1c: FILE ver : 1230
20: BOOT ver : 1230
24: eGON ver : 11
28: platform : 2.0.0�
30: FHSize : 33488
34: FILE ver : 1230
38: UART port : 0
3c: GPIO 0 : port=B22, sel=2, pull=1, drv=255, data=255,
reserved=00,00
44: GPIO 1 : port=B23, sel=2, pull=1, drv=255, data=255,
reserved=00,00
4c: DRAM base : 0x40000000
50: DRAM clk : 384
54: DRAM type : 3
58: DRAM rank : 1
5c: DRAM den : 4096
60: DRAM iow : 16
64: DRAM busw : 32
68: DRAM cas : 9
6c: DRAM zq : 123
70: DRAM odt : 0x0
74: DRAM size : 1024
78: DRAM tpr0 : 0x42d899b7
7c: DRAM tpr1 : 0xa090
80: DRAM tpr2 : 0x22a00
84: DRAM tpr3 : 0x0
88: DRAM tpr4 : 0x0
8c: DRAM tpr5 : 0x0
90: DRAM emr1 : 0x4
94: DRAM emr2 : 0x10
98: DRAM emr3 : 0x0
809c: Set Clock : 912
80a0: Set Core Vol: 1400
80a4: Vol Threshold: 3600
80a8: TWI port : 0
80ac: GPIO 0 : port=B0, sel=2, pull=255, drv=255, data=255,
reserved=00,00
80b4: GPIO 1 : port=B1, sel=2, pull=255, drv=255, data=255,
reserved=00,00
80bc: Debug : 0
80c0: Hold key min : 0
80c4: Hold key max : 0
80c8: Work mode : 32
80cc: STORAGE :
80cc: type : 0
81d0: DATA 00 : 01 00 00 00 01 00 00 00 01 00 00 00 01 00 00 00
81e0: DATA 10 : 01 00 00 00 01 00 00 00 01 00 00 00 02 00 00 00
81f0: DATA 20 : 10 00 00 00 00 01 00 00 00 08 00 00 88 11 00 00
8200: DATA 30 : 1e 00 00 00 03 00 00 00 ad d7 94 da ff ff ff ff
8210: DATA 40 : b0 03 00 00 b0 03 00 00 04 06 01 00 00 00 00 00
8220: DATA 50 : 0c b9 6f 42 00 00 00 00 e8 45 81 40 c9 f0 80 40
8230: DATA 60 : 00 00 00 00 28 5c 42 42 98 4a 81 40 00 00 00 00
8240: DATA 70 : 00 00 00 00 bc fe 6f 42 18 b9 6f 42 8f 73 82 40
8250: DATA 80 : 00 40 00 00 00 03 00 00 28 b9 6f 42 c7 56 82 40
8260: DATA 90 : 00 04 00 00 01 00 00 00 38 b9 6f 42 65 f7 80 40
8270: DATA a0 : 40 b9 6f 42 79 f8 80 40 5c b9 6f 42 00 00 00 00
8280: DATA b0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
8290: DATA c0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
82a0: DATA d0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
82b0: DATA e0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
82c0: DATA f0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Thank you for help.
Martin Vancl
--
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/d/optout.