* down pdp0 pdp1 pdp2 * echo on > /sys/devices/platform/s5p-ehci/ehci_runtime * echo "0" > /sys/devices/platform/s5p-ehci/ehci_power * nanosleep({0, 500000000}, {0, 500000000 * echo "1" > /sys/devices/platform/s5p-ehci/ehci_power * echo "on" > /sys/devices/platform/modemctl/control * sleep 1 sec * read /sys/class/net/svnet0/connected (1) * down iface * up iface * bind with no "sa_data" * recv ATAT (not recvfrom) -> is it send or recv??? * read ack, chip id * read 61440 bytes from /dev/block/mmcblk0p8 from 0 offset * send PSI header (4 bytes) * send PSI data: 61440 bytes * send CRC (0x20) * read CRC ack (0x51 - Q) then 0x92 then 0x0e then 0x00 then # (0x23) the 0x0 then 0x00 then 0x00 then i(0x69) then 0xea then 0x11 then 0x65 … up to 0xff * 0xff is the ack byte * read 0x01 * 0x01 is one ack byte * read x01 * 0x01 is one ack byte * psi sending is done * read 2 bytes (0xaa00) * open /dev/block/mmcblk0p8 * mmap ??? 106496 bytes??? * seek after 61440 bytes on mmcblk0p8 * read 102400 bytes * Send 102400 bytes * send len on svnet0 (int) * read 2 bytes ack (0xcccc) * send 3 bursts of 32768 and 1 of 4096 * send crc 0xbc * read crc ack (2 bytes): 0xa551 * done with modem.img * munmap??? * read bootloader infos * SetPortConf Command??? 2056 bytes sent * read ack 8 bytes * read 2048 bytes??? * open /dev/block/mmcblk0p8 * lseek(34, 10483712, SEEK_SET) = 10483712 * read 2048 bytes * close mmcblk * Execute ReqSecStart Command * send 16392bytes * read ack 8 bytes