1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-23 02:36:16 +02:00
Commit Graph

418 Commits

Author SHA1 Message Date
xiangfu
b47ed72723 change the file_buf use the code_buf not malloc 2009-05-26 17:05:54 +00:00
xiangfu
132b7afd9c change the sturct name 2009-05-20 08:13:10 +00:00
xiangfu
e7a23fd7b6 delete repeat code 2009-05-16 02:57:10 +00:00
xiangfu
470a2548f7 add device_stage1 folder 2009-05-15 05:00:58 +00:00
xiangfu
3977cdb120 add usb boot stage2 for device 2009-05-15 05:00:06 +00:00
xiangfu
6a07660a37 fix typo 2009-05-14 17:34:03 +00:00
xiangfu
63cbdd19c8 add a reflash shell 2009-05-14 17:12:48 +00:00
xiangfu
b5a4d70021 now the reflash function is work :-) 2009-05-14 17:11:03 +00:00
xiangfu
fe484a65ee change usb_read_data_from_ingenic functio to take three argument 2009-05-14 09:15:11 +00:00
xiangfu
d66be487ab add error_check function.
add usb_ingenic_configration
2009-05-12 14:41:52 +00:00
xiangfu
72dd61a7c7 modify the read data function and send length function 2009-05-08 16:14:14 +00:00
Dmitry Kurochkin
0ca1d89412 Bad magic when booting from NAND
Qi fails to boot from NAND. Qi booting from SD goes fine. Booting NAND
from NOR works as well.

I have found the problem. The error was because we check if the
current block is bad or the next one is bad. And skip the current
block even if only the next one is bad. This way we skip good block
before a bad one.

This patch fixes the bug.

Signed-off-by: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
2009-05-07 00:27:20 -05:00
xiangfu
7085493d7c remove command_input function.
change nand_program_check not return page num.
2009-05-07 03:07:52 +00:00
xiangfu
ee5af659bf add some comment 2009-05-04 16:08:03 +00:00
xiangfu
37327ca07f add "-c" option to direct run command. 2009-05-04 15:57:06 +00:00
xiangfu
f7998e35b8 add nand_read function 2009-05-04 14:36:51 +00:00
xiangfu
7513e53951 add nand_program_check function 2009-05-03 15:33:56 +00:00
xiangfu
fac0cd77ea add nand_ops function 2009-05-03 15:06:23 +00:00
xiangfu
acc365174f add usb_send_data_address_to_ingenic,
usb_send_data_to_ingenic function.
2009-05-01 16:14:55 +00:00
xiangfu
b22c1f680e make the -v -h work with normal user 2009-04-30 17:31:02 +00:00
xiangfu
a834e80362 -put all the configure file operation to ingenic.c
-change usb.c to ingenic_usb.c
-finish part of nprog command
-try to init the ingenic usb in main.c
-try to make code more clear.
2009-04-30 17:26:14 +00:00
xiangfu
dd263b67b9 add init hand function
add check nand configure
2009-04-30 07:18:44 +00:00
xiangfu
392d2bb3fc add read nand configure 2009-04-30 07:06:33 +00:00
xiangfu
6082b4557d now the nprog function can read the argument 2009-04-30 06:41:49 +00:00
xiangfu
5db3e003da mv the COMMAND define to command_line.c 2009-04-30 06:12:38 +00:00
xiangfu
346f1528d6 change the fw_args_t , don't use typedef 2009-04-29 13:26:28 +00:00
xiangfu
60daa40873 add some define 2009-04-29 11:20:02 +00:00
xiangfu
6e4e15eb31 change cmd_boot.c to cmd.c, put all the command in this file.
add some struct nprog needs.
remove handle_help handle_exit function.
2009-04-29 07:25:12 +00:00
xiangfu
f93b8a829b remove the usb-boot 2009-04-29 05:23:17 +00:00
xiangfu
c4b2faf24f format the printf 2009-04-29 04:43:54 +00:00
xiangfu
c0eaa27e65 fix strcmp warning 2009-04-28 18:38:26 +00:00
xiangfu
1bfa9f79c0 add make clean.
now we can "make usb-boot" to get all usb-boot needs.
    *now we must put "fw.bin", "usb_boot.bin" and "inflash" in the same directory
2009-04-28 18:32:37 +00:00
xiangfu
98a477152f update Makefile and README
fix compile error. ZZy
2009-04-28 18:22:12 +00:00
xiangfu
e0de52c28c cleanup the code
change all the function return 1 for success
2009-04-28 18:13:19 +00:00
xiangfu
1275a789b7 command_input return 0 means correct 2009-04-28 17:22:07 +00:00
xiangfu
4c7da19fb5 add README 2009-04-28 17:12:50 +00:00
xiangfu
f83f34e76b add command line 2009-04-28 17:07:43 +00:00
xiangfu
46f40dbfa6 split main.c to cmd_boot.c and main.c 2009-04-28 15:57:53 +00:00
xiangfu
7a4d062a79 add clean backup file 2009-04-28 15:56:32 +00:00
xiangfu
8c3ab02952 correct the switch for version 2009-04-28 14:14:58 +00:00
xiangfu
e6bf557fee add option 2009-04-28 14:09:07 +00:00
xiangfu
7e02a14ac0 delete u-boot folder 2009-04-27 17:08:44 +00:00
xiangfu
7925295fd6 delete ,inc. 2009-04-27 17:05:52 +00:00
xiangfu
d13f0af3b0 update Makefile 2009-04-27 17:03:46 +00:00
xiangfu
4e23a51d53 now inflash can upload stage2 2009-04-27 16:08:41 +00:00
xiangfu
1675108f82 init the cpu_id 2009-04-27 09:37:05 +00:00
xiangfu
60cb0eb193 add read configure file code 2009-04-27 08:54:10 +00:00
xiangfu
4f47892d13 add usb_boot.cfg file 2009-04-27 08:15:27 +00:00
xiangfu
738212eb35 change the stage1 start address 2009-04-27 06:42:15 +00:00
xiangfu
3bcfd5725b upload use usb_bulk_wirte. 2009-04-26 20:08:14 +00:00