Skip to content

Instantly share code, notes, and snippets.

View pietrushnic's full-sized avatar

Piotr Król pietrushnic

View GitHub Profile
./fel spl ../CHIP-tools/sunxi-spl.bin
sleep 1
./fel write 0x43000000 ../CHIP-tools/out-sunxi-spl.bin #../CHIP-tools/sunxi-spl.bin treated with spl-image-builder ecc=none rng=none
./fel write 0x4a000000 ../u-boot-sunxi/u-boot-dtb-pa.bin #aligned to 8k ecc=hw rng=hw
./fel exe 0x4a000000
#out-sunxi-spl.bin - treated with spl-image-builder
nand erase 0x0 0x200000000
nand write.raw 0x43000000 0x0 0xc3
nand write.raw 0x43000000 0x200000 0xc3
#u-boot-dtb-pa.bin - aliged to 8k
nand erase 0x800000 0x96000
nand write 0x4a000000 0x800000 0x96000
[16:49:35] pietrushnic:offlineimap git:(next*) $ /home/pietrushnic/src/python-venv/bin/offlineimap -d imap -a foo@bar.com
OfflineIMAP 6.6.0-rc1
Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)
Debug mode: Forcing to singlethreaded.
Now debugging for imap: IMAP protocol debugging
Now debugging for : Other offlineimap related sync messages
Account sync foo@bar.com:
[imap]: Using authentication mechanisms ['GSSAPI', 'XOAUTH2', 'CRAM-MD5', 'PLAIN', 'LOGIN']
*** Processing account foo@bar.com
Establishing connection to foobar.home.pl:143
[16:52:12] pietrushnic:offlineimap git:(next*) $ /home/pietrushnic/src/python-venv/bin/offlineimap -d imap -a foo@bar.com
OfflineIMAP 6.6.0-rc1
Licensed under the GNU GPL v2 or any later version (with an OpenSSL exception)
Debug mode: Forcing to singlethreaded.
Now debugging for imap: IMAP protocol debugging
Now debugging for : Other offlineimap related sync messages
Account sync foo@bar.com:
[imap]: Using authentication mechanisms ['GSSAPI', 'XOAUTH2', 'CRAM-MD5', 'PLAIN', 'LOGIN']
*** Processing account foo@bar.com
Establishing connection to foobar.home.pl:993
U-Boot SPL 2015.10-rc4-00107-g58e160fb68c5 (Oct 13 2015 - 21:37:01)
DRAM: 2048 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
U-Boot 2015.10-rc4-00107-g58e160fb68c5 (Oct 13 2015 - 21:37:01 +0200) Allwinner Technology
CPU: Allwinner A20 (SUN7I)
I2C: ready
DRAM: 2 GiB
=> printenv
baudrate=115200
boot_a_script=load ${devtype} ${devnum}:${bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
boot_extlinux=sysboot ${devtype} ${devnum}:${bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf
boot_prefixes=/ /boot/
boot_script_dhcp=boot.scr.uimg
boot_scripts=boot.scr.uimg boot.scr
boot_targets=fel mmc0 ubifs0 scsi0 usb0 pxe dhcp
bootcmd=run distro_bootcmd
bootcmd_dhcp=usb start; if dhcp ${scriptaddr} ${boot_script_dhcp}; then source ${scriptaddr}; fi
U-Boot 2015.10-rc4-00107-g58e160fb68c5 (Oct 13 2015 - 22:42:31 +0200) Allwinner Technology
CPU: Allwinner A20 (SUN7I)
I2C: ready
DRAM: 2 GiB
NAND: strength = 40/1024
0
8192 MiB
MMC: SUNXI SD/MMC: 0
MMC: no card present
U-Boot SPL 2015.10-rc4-00108-g5476399b916b-dirty (Oct 13 2015 - 23:44:00)
DRAM: 2048 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
>>spl:board_init_r()
boot device - 4
spl: nand - using hw ecc
nand: trying page 8192 ecc 40 / 1024 addr 5: success
mkimage signature not found - ih_magic = ea0000be
Jumping to U-Boot
SPL malloc() used 0x348 bytes (0 KB)
arm-linux-gnueabihf-ld.bfd: error: /home/pietrushnic/storage/wdc/projects/3mdeb/cubietruck/toolchains/gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.3/libgcc.a(_udivmoddi4.o) uses VFP register arguments, u-boot does not
arm-linux-gnueabihf-ld.bfd: failed to merge target specific data of file /home/pietrushnic/storage/wdc/projects/3mdeb/cubietruck/toolchains/gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.3/libgcc.a(_udivmoddi4.o)
Makefile:1173: recipe for target 'u-boot' failed
make: *** [u-boot] Error 1
=> nand read 0x43000000 0x400000 0x96000
NAND read: device 0 offset 0x400000, size 0x96000
614400 bytes read: OK
=>
Unknown command '' - try 'help'
=> md.b 0x430539b0 0x50
430539b0: 1e ff 2f e1 1e ff 2f e1 1e ff 2f e1 00 00 a0 e3 ../.../.../.....
430539c0: 1e ff 2f e1 1e ff 2f e1 00 00 a0 e3 1e ff 2f e1 ../.../......./.
430539d0: 1e ff 2f e1 00 00 a0 e3 1e ff 2f e1 00 00 a0 e3 ../......./.....