Date:2009-08-27 15:48:03 (10 years 9 months ago)
Author:Xiangfu Liu
Commit:c5621d6af871fa5c9f11b9b33f6965e6202ae79e
Message:update README, some code cleanup

Signed-off-by: Xiangfu Liu <xiangfu.z@gmail.com>
Files: usbboot/README (1 diff)
usbboot/src/cmd.c (1 diff)
usbboot/src/ingenic_cfg.c (1 diff)
usbboot/xburst_stage2/boothandler.c (2 diffs)

Change Details

usbboot/README
3030  make install
3131    *) make install will install the 'usbboot' binary to /usr/bin/usbboot
3232       and the stage 1 and 2 bootloaders as well as usbboot.cfg configuration
33       file into /usr/share/xburst-tools
33       file into /etc/xburst-tools
3434
3535Configuration file: /usr/share/xburst-tools/usbboot.cfg
3636
usbboot/src/cmd.c
450450        transfer_size = (hand.nand_ppb * hand.nand_ps);
451451    else
452452        transfer_size = (hand.nand_ppb * (hand.nand_ps + hand.nand_os));
453    printf("nand_ppb: %d, nand_ps: %d, nand_os: %d\n", hand.nand_ppb,
454        hand.nand_ps, hand.nand_os);
455
453456    m = flen / transfer_size;
454457    j = flen % transfer_size;
455458    printf(" Size to send %d, transfer_size %d\n", flen, transfer_size);
usbboot/src/ingenic_cfg.c
126126        total_size / 0x100000, 2 * (hand->fw_args.bank_num + 1),
127127           16 * (2 - hand->fw_args.bus_width));
128128
129    printf("Nand page size %d, "
129    printf("Nand page per block %d, "
130           "Nand page size %d, "
130131           "ECC offset in OOB %d, "
131132           "bad block offset in OOB %d, "
132133           "bad block page %d, "
133134           "use %d plane mode\n",
135           hand->nand_ppb,
134136           hand->nand_ps,
135137           hand->nand_eccpos,
136138           hand->nand_bbpos,
usbboot/xburst_stage2/boothandler.c
315315        nand_init_4740(Hand.nand_bw,Hand.nand_rc,Hand.nand_ps,Hand.nand_ppb,
316316               Hand.nand_bbpage,Hand.nand_bbpos,Hand.nand_force_erase,Hand.nand_eccpos);
317317
318        nand_program=nand_program_4740;
319        nand_erase =nand_erase_4740;
320        nand_read =nand_read_4740;
321        nand_read_oob=nand_read_oob_4740;
322        nand_read_raw=nand_read_raw_4740;
323        nand_query = nand_query_4740;
318        dprintf("\nnand_ps, nand_ppb, nand_bbpage, nand_bbpos, nand_eccpos\n");
319        serial_put_hex(Hand.nand_ps);
320        serial_put_hex(Hand.nand_ppb);
321        serial_put_hex(Hand.nand_bbpage);
322        serial_put_hex(Hand.nand_bbpos);
323        serial_put_hex(Hand.nand_eccpos);
324
325        nand_program = nand_program_4740;
326        nand_erase = nand_erase_4740;
327        nand_read = nand_read_4740;
328        nand_read_oob = nand_read_oob_4740;
329        nand_read_raw = nand_read_raw_4740;
330        nand_query = nand_query_4740;
324331        nand_enable = nand_enable_4740;
325        nand_disable= nand_disable_4740;
332        nand_disable = nand_disable_4740;
326333        nand_mark_bad = nand_mark_bad_4740;
327334    break;
328335    case 0x4750:
...... 
331338                   Hand.nand_ppb, Hand.nand_bchbit, Hand.nand_eccpos,
332339                   Hand.nand_bbpos, Hand.nand_bbpage, Hand.nand_force_erase);
333340
334        nand_program=nand_program_4750;
335        nand_erase =nand_erase_4750;
336        nand_read =nand_read_4750;
337        nand_read_oob=nand_read_oob_4750;
338        nand_read_raw=nand_read_raw_4750;
339        nand_query = nand_query_4750;
341        nand_program = nand_program_4750;
342        nand_erase = nand_erase_4750;
343        nand_read = nand_read_4750;
344        nand_read_oob = nand_read_oob_4750;
345        nand_read_raw = nand_read_raw_4750;
346        nand_query = nand_query_4750;
340347        nand_enable = nand_enable_4750;
341        nand_disable= nand_disable_4750;
348        nand_disable = nand_disable_4750;
342349        nand_mark_bad = nand_mark_bad_4750;
343350    break;
344351    default:

Archive Download the corresponding diff file



interactive