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

628 Commits

Author SHA1 Message Date
xiangfu
c7346db1b6 add device_stage1 code 2009-06-05 08:20:06 +00:00
xiangfu
7cd119baeb add fw.bin to the svn 2009-06-05 05:57:06 +00:00
xiangfu
3205485a50 delete the useless head file 2009-06-05 05:49:19 +00:00
xiangfu
6889fc0b3d add openwrt r15323 patch 2009-06-02 04:39:05 +00:00
Paul Fertser
fd3fac5a54 GTA02: set battery full charging current threshold to 2/32*Ichg
In most conditions the charger is unable to detect battery full status
because gsm modem continiously draws current directly from the battery.
This makes it less sensitive and therefore will cutoff charging properly.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2009-06-01 21:33:34 -03:00
xiangfu
7f0f907bac change the fread fseek ... to read. seek 2009-05-31 03:32:19 +00:00
Paul Fertser
141b2bedfc Use different MACs for the host and for the device ends of usb link
This makes Qi consistent with current SHR boot script. It assigns
the MAC specified on the identity partition to the device and the
next address to the host, ie: from "g_ether.dev_addr=00:1F:11:01:58:67"
generate "g_ether.host_addr=00:1F:11:01:58:68".

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2009-05-28 20:06:51 -03:00
Paul Fertser
8089e8de8b Added SDHC support
Implemented and tested on Josch's GTA01Bv4

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2009-05-26 22:11:17 -03:00
xiangfu
4c57b734eb change some output info 2009-05-26 17:22:44 +00:00
xiangfu
bb5f4be354 change the hand point 2009-05-26 17:14:40 +00:00
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