1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-01 12:09:40 +02:00
Commit Graph

458 Commits

Author SHA1 Message Date
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
xiangfu
ca44786d0f add usb request value 2009-04-26 18:17:38 +00:00
lindnermarek
c84cd36cf8 [inflash] send the data length before uploading the file 2009-04-26 18:11:19 +00:00
xiangfu
6850c99ab8 now we don't have USBBoot.cfg file.
for now. we put the configure in code.
2009-04-26 18:09:08 +00:00
xiangfu
22cb7cda9e correct the flash tool path 2009-04-26 15:34:02 +00:00
lindnermarek
8979988877 [flash-tool] complete inflash stage1
The stage1 file can be uploaded but the following bootstrap is not successful. Once this bug is found adding stage2 is no problem.
2009-04-26 10:37:31 +00:00
xiangfu
08a770af52 test email 2009-04-24 03:18:27 +00:00
xiangfu
1bd0ec6eb3 don't need this we use flash-tool instead. 2009-04-23 05:51:18 +00:00
lindnermarek
a11533e6ca add linux usb flash tool 2009-04-22 18:22:16 +00:00
xiangfu
f41288f47c add RXD pin 2009-04-22 14:42:48 +00:00
xiangfu
3400d208d5 mv kernel code to github.com 2009-04-22 14:39:48 +00:00