Showing posts with label eb6510_hacking. Show all posts
Showing posts with label eb6510_hacking. Show all posts

2011-01-19

Project GW EB6510 Hacking: (2) Serial Output

0: serial param
=====================
  • 115200
  • 8
  • no flow ctl
  • stop 1
  • no parity
1: serial output - boot up
=============================
OKGABDEgreen led:567

battery1(567) normal power on

U-Boot 1.1.6 (Mar 31 2010 - 16:24:45) for SMDK2416


CPU: S3C2416@400MHz
Fclk = 800MHz, Hclk = 133MHz, Pclk = 66MHz
Board: SMDK2416 Mobile DDR
DRAM: 64 MB
Flash: 0 kB
NAND: ngp nand init
s3c24xx:board nand init--d3
1024 MB
ngp nand_base:nand read
*** Warning - bad CRC or NAND, using default environment

In: serial
Out: serial
Err: serial
S1d13521 interface init gpio
s1d13521 reset!
s1d13521fb_init: InterfaceInit ok
s1d13521 init display
green led:559
Now loading logo from 6200000
ngp nand_base:nand read
bmp bits:1, bmp_head_len:76 bmp size:3a982 nand addr:6200000 bmp file is support bs_cmd_ld_img_end disp_full(2, 15); bs_cmd_wait_disp_ready green led:561 3G power on Hit any key to stop autoboot: 0 ngp no hit key

NAND read: device 0 offset 0x40000, size 0x1c0000 ngp nand_base:nand read
1835008 bytes read: OK
## Booting image at c0008000 ...
Image Name: Linux-2.6.21.5-cfs-v19
Created: 2010-04-09 6:44:28 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1638968 Bytes = 1.6 MB
Load Address: 30008000
Entry Point: 30008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux...........................................................................................................
done, booting the kernel.
Linux version 2.6.21.5-cfs-v19 (fei@fedora) (gcc version 4.2.2) #391 Fri Apr 9 14:44:20 HKT 2010
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
Machine: SMDK2416
Ignoring unrecognised tag 0x00000000
Memory policy: ECC disabled, Data cache writeback
ike: Detected CPU type 0x32450003
CPU S3C2416 EVT3 (id 0x32450003)
S3C24XX Clocks, (c) 2004 Simtec Electronics
S3C2416: mpll on 800.000 MHz, cpu 400.000 MHz, mem 133.333 MHz, pclk 66.666 MHz
S3C2416: epll on 96.000 MHz, usb-bus 48.000 MHz
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets Built 1 zonelists. Total pages: 16256 Kernel command line: noinitrd root=/dev/mtdblock2 rw rootfstype=yaffs init=/linuxrc console=ttySAC0,115200
irq: clearing pending ext status 00003b00
irq: clearing subpending status 00000402
irq: clearing subpending status 00000002 PID hash table entries: 256 (order: 8, 1024 bytes) timer tcon=00500000, tcnt 28af, tcfg 00000f00,00000000, usec 00007ae2
Console: colour dummy device 80x30
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 61452KB available (3076K code, 238K data, 96K init) Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
S3C2410 Power Management, (c) 2004 Simtec Electronics
S3C2416: Initialising architecture
S3C2416: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics DMA channel 0 at c4800000, irq 88 DMA channel 1 at c4800100, irq 89 DMA channel 2 at c4800200, irq 90 DMA channel 3 at c4800300, irq 91 DMA channel 4 at c4800400, irq 92 DMA channel 5 at c4800500, irq 93 DMA channel 6 at c4800600, irq 99 DMA channel 7 at c4800700, irq 100 SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb Sangoma WANPIPE Router v1.1 (c) 1995-2000 Sangoma Technologies Inc.
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 2048 (order: 2, 16384 bytes) TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048) TCP reno registered NetWinder Floating Point Emulator V0.97 (double precision) yaffs Apr 7 2010 14:04:47 Installing.
io scheduler noop registered
io scheduler anticipatory registered (default) io scheduler deadline registered io scheduler cfq registered reg is 47
Console: switching to colour frame buffer device 75x50 init ok!
S3C2416 ADC, (c) 2008 Simtec Electronics ***********enter ggw_show_logo and load draw ***********ggw_draw_progressbar:802,per =40
to=263,curx=191,cury=598,tmpw=72
command=4547,numbertypes=216,buffer=c3cb98e0,return=0
s3c2410_adc_probe: probe=c0329ff0
adc_PreScale= 32
initial pvi_io proc.
create pviio proc.
***********enter ggw_show_logo and not load draw ***********enter ggw_show_logo and not load draw
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440 RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
nbd: registered device at major 43
PPP generic driver version 2.4.2
PPP Deflate Compression module registered PPP BSD Compression module registered S3C24XX NAND Driver, (c) 2004 Simtec Electronics ***********enter ggw_show_logo and not load draw s3c-nand s3c2410-nand: Tacls=3, 22ns Twrph0=4 30ns, Twrph1=3 22ns initialising set 0 (c3d4b800, info c3d687e0) writesize:2048, oobsize:64, erasesize:131072 NAND device : Manufacturer ID: 0xec, Chip ID: 0xd3 (Samsung NAND 1GiB 3,3V 8-bit) Scanning device for bad blocks Bad eraseblock 628 at 0x04e80000 Creating 7 MTD partitions on "NAND 1GiB 3,3V 8-bit":
0x00000000-0x00040000 : "uboot"
0x00040000-0x00200000 : "kernel"
0x00200000-0x02200000 : "rootfs"
0x02200000-0x04200000 : "qt"
0x04200000-0x06200000 : "app"
0x06200000-0x06300000 : "boot frame"
0x06300000-0x40000000 : "user space"
spi /dev entries driver
S3C2443 HSPI Driver
***********enter ggw_show_logo and not load draw resource start : 52000000 hspi registers c4c00000 (c3d39920, c032b418) s3c2410-spi s3c2410-spi.0: s3c2410-spi.0: S3C SPI adapter
s3c2410-spi.0: S3C SPI adapter
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage USB Mass Storage support registered.
usbcore: registered new interface driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
mice: PS/2 mouse device common for all mice dir_sensor initialized !
***********enter ggw_show_logo and not load draw rtc-test rtc-test.0: rtc core: registered test as rtc0 rtc-test rtc-test.1: rtc core: registered test as rtc1 S3C24XX RTC, (c) 2004,2006 Simtec Electronics ***********enter ggw_show_logo and not load draw
res->start : 57005000 res->end : 570050ff<6>s3c2410-rtc s3c2410-rtc:
rtc disabled, re-enabling
s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc2 i2c /dev entries driver ***********enter ggw_show_logo and not load draw s3c2410-i2c s3c2410-i2c: slave address 0x10 s3c2410-i2c s3c2410-i2c: bus frequency set to 130 KHz s3c2410-i2c s3c2410-i2c: i2c-0: S3C I2C adapter ***********enter ggw_show_logo and not load draw
input: pcabutton as /class/input/input0
register IRQ-54 successful.[ret: 0]
reg 0x1F: 3
reg 0x1F: 3
reg 0x1F: 3
reg 0x1F: 3
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
***********enter ggw_show_logo and not load draw s3c-sdhci s3c-sdhci.0: clock source 0: hsmmc (133333333 Hz) s3c-sdhci s3c-sdhci.0: clock source 1: hsmmc (133333333 Hz) s3c-sdhci s3c-sdhci.0: clock source 2: esysclk (96000000 Hz)
host->max_clk: 133333333
mmc0: SDHCI controller on samsung-hsmmc using ADMA s3c-sdhci s3c-sdhci.1: clock source 0: hsmmc (133333333 Hz) s3c-sdhci s3c-sdhci.1: clock source 1: hsmmc (133333333 Hz) s3c-sdhci s3c-sdhci.1: clock source 2: esysclk (96000000 Hz)
host->max_clk: 133333333
mmc1: SDHCI controller on samsung-hsmmc using ADMA GPIO L3 bus interface for s3c, installed Advanced Linux Sound Architecture Driver Version 1.0.14rc3 (Wed Mar 14 07:25:50 2007 UTC).
ASoC version 0.13.2
***********enter ggw_show_logo and not load draw
wm8753: WM8753 Audio Codec 0.16
asoc: WM8753 HiFi <-> s3c-i2s mapping ok
Wm8753 is in master mode
ALSA device list:
#0: smdk2416 (WM8753)
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
rtc-test rtc-test.0: setting the system clock to 1970-01-01 00:00:01 (1) ***********enter ggw_show_logo and load draw ***********ggw_draw_progressbar:802,per =70
to=373,curx=191,cury=598,tmpw=182
command=4547,numbertypes=546,buffer=c3d8ba00,return=0
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: auto selecting yaffs2
Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement Partially written block 225 being set for retirement
VFS: Mounted root (yaffs filesystem).
Freeing init memory: 96K
Starting mdev ...
ls: /dev/mmcblk*: No such file or directory
yaffs: dev is 32505860 name is "mtdblock4"
yaffs: Attempting MTD mount on 31.4, "mtdblock4"
yaffs: restored from checkpoint
Run /qte/app/bin/rcS
enable 3g power
create ,ggw_hcd_removed=0
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1 s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected usb 1-1: new full speed USB device using s3c2410-ohci and address 2 usb 1-1: configuration #3 chosen from 1 choice cdc_acm 1-1:3.1: ttyACM0: USB ACM device cdc_acm 1-1:3.3: ttyACM1: USB ACM device cdc_acm 1-1:3.5: ttyACM2: USB ACM device
usbcore: registered new interface driver cdc_acm
drivers/usb/class/cdc-acm.c: v0.25:USB Abstract Control Model driver for USB modems and ISDN adapters
yaffs: dev is 32505859 name is "mtdblock3"
yaffs: Attempting MTD mount on 31.3, "mtdblock3"
yaffs: restored from checkpoint
yaffs: dev is 32505862 name is "mtdblock6"
yaffs: Attempting MTD mount on 31.6, "mtdblock6"
yaffs: restored from checkpoint
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!

Please press Enter to activate this console.
/$
/$
/$
/$ Using 600x800x4 screen
map framebuffer, mapsize = 1920000, data = 0x416e2000
QLinuxFbScreen::connect: Invalid argument Error reading palette from framebuffer, using default palette solidFill:region = (0, 0, 600, 800), not supported yet QLinuxFbScreen::blit:x = 0, y = 0, w = 600, h = 800 run:EprThread started, id = 0x42d5f490 run:DownloadMgr started, id = 0x4355f490 processDownloadEvent:enter download event, thread = 0x4355f490 apm timeout = 15s, networktimeout = 600s, stoptimeout = 300s, autotimeout = 900s epr_get_download_info:join on download_table and book_table failed SELECT a.uid, a.contentid, url, ticketurl, product_license, content_license, title, length, mimetype, path, finished_time, authorid, authorname FROM download_table as a INNER JOIN book_table as b ON a.uid = b.uid AND a.contentid = b.contentid WHERE a.uid = ? AND state = ? ORDER BY finished_time DESC updateDownloadStatsFromDB:r = -1, failed processDownloadEvent:leave download event, thread = 0x4355f490 QLinuxFbScreen::blit:x = 0, y = 0, w = 600, h = 800

/$
/$ usbcore: deregistering interface driver cdc_acm QLinuxFbScreen::blit:x = 0, y = 0, w = 600, h = 800 QLinuxFbScreen::blit:x = 502, y = 6, w = 40, h = 22 QLinuxFbScreen::blit:x = 400, y = 0, w = 62, h = 36

/$
/$ s3c2410-ohci s3c2410-ohci: remove, state 4 remove ggw_hcd_removed=1 usb usb1: USB disconnect, address 1 usb 1-1: USB disconnect, address 2 after del_timer_sync s3c2410-ohci s3c2410-ohci: USB bus 1 deregistered s3c2410-ohci s3c2410-ohci: dma_pool_destroy buffer-128, ff645000 busy s3c2410-ohci s3c2410-ohci: dma_pool_destroy buffer-128, ff644000 busy wake enabled for irq 46 open /dev/apm_bios ...
1
sync ...
ioctl ...Stopping tasks ...
done.
Suspending console(s)
OKPMGenter s1d13521fb suspend!
timer tcon=00000000, tcnt 28af, tcfg 00000f00,00000000, usec 00007ae2 s3c-nand s3c2410-nand: Tacls=3, 22ns Twrph0=4 30ns, Twrph1=3 22ns enter s1d13521fb_resume!
reg is 47
s3c2410-i2c s3c2410-i2c: slave address 0x10 s3c2410-i2c s3c2410-i2c: bus frequency set to 130 KHz s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling Restarting tasks ... done.
res: 0wake disabled for irq 46

create ,ggw_hcd_removed=0
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1 s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected MainWindow:key = 0x50 pressed, discard it usb 1-1: new full speed USB device using s3c2410-ohci and address 2 usb 1-1: configuration #3 chosen from 1 choice

/$
/$
/$ s3c2410-ohci s3c2410-ohci: remove, state 4 remove ggw_hcd_removed=1 usb usb1: USB disconnect, address 1 usb 1-1: USB disconnect, address 2 after del_timer_sync s3c2410-ohci s3c2410-ohci: USB bus 1 deregistered wake enabled for irq 46 open /dev/apm_bios ...
1
sync ...
ioctl ...Stopping tasks ...
done.
Suspending console(s)
2: Serial output - shutdown
==============================
OKPMGenter s1d13521fb suspend!
timer tcon=00000000, tcnt 28af, tcfg 00000f00,00000000, usec 00007ae2 s3c-nand s3c2410-nand: Tacls=3, 22ns Twrph0=4 30ns, Twrph1=3 22ns enter s1d13521fb_resume!
reg is 47
s3c2410-i2c s3c2410-i2c: slave address 0x10 s3c2410-i2c s3c2410-i2c: bus frequency set to 130 KHz s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling Restarting tasks ... done.
res: 0
QLinuxFbScreen::blit:x = 0, y = 0, w = 600, h = 800 wake disabled for irq 46 enable 3g power create ,ggw_hcd_removed=0 s3c2410-ohci s3c2410-ohci: S3C24XX OHCI s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1 s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected QLinuxFbScreen::blit:x = 0, y = 0, w = 600, h = 800 QLinuxFbScreen::blit:x = 34, y = 586, w = 532, h = 180 run:DownloadMgr finished, id = 0x4355f490 run:EprThread finished, id = 0x42d5f490 /qte/app/bin/FBReader exists normally, shutdown system usb 1-1: new full speed USB device using s3c2410-ohci and address 2 usb 1-1: configuration #3 chosen from 1 choice Using 600x800x4 screen map framebuffer, mapsize = 1920000, data = 0x40d72000
QLinuxFbScreen::connect: Invalid argument Error reading palette from framebuffer, using default palette QLinuxFbScreen::blit:x = 0, y = 0, w = 600, h = 800 QLinuxFbScreen::blit:x = 0, y = 0, w = 600, h = 800 QLinuxFbScreen::blit:x = 0, y = 0, w = 600, h = 800 entering rcH save exit: isCheckpointed 1 save exit: isCheckpointed 1 save exit: isCheckpointed 1 reboot
umount: none busy - remounted read-only
umount: /etc/mtab: No such file or directory
umount: /etc/mtab: No such file or directory
umount: /etc/mtab: No such file or directory The system is going down NOW!
Sent SIGTERM to all processes
Sent SIGKILL to all processes
Restarting system.

2011-01-17

Project GW EB6510 Hacking: (1) 硬件信息, 信息搜集

Greawall EB6510 电纸书阅读器, 为中国移动 OEM 的


开机显示的系统信息:


拆开后壳, 主板的情况: (下图顶部中间白色 12 pin 插槽是串口pinout, 个人的门路搞到的, 省掉了一个大麻烦. 需要TTL转换)


芯片信息:
===================

1 8Gb(1GB) NAND FLASH
----------------------------------

SAMSUNG 001
K9K8G08U0B
PCB0

2 400 MHz ARM926EJ MCU
---------------------------------------

SAMSUNG
S3C2416XH-40
C0947
ARM
N21H5BAL

3
--------

SEC 013 FGC6
X4X51163PG

4
-----

EPSON
D135211B2
F10080260
E-INK

5 512Mb/64MB MMSDRAM
---------------------------------------

SAMSUNG 004
K4M51323PG-HG75
EDL159PB

6
----

VM8753G
67ALGK9

7 温度感应?
------------------------

LM75A
35 04
h(??)6721
NXP

8
---

ATMLH932
168 1
9G0245A

9 Audio Amplifier
----------------------------

PAM8403
TSD93992

10
------

LJ(T?)9J
3455
J0616

11
-----

PZ418
T1 9AX
E300

12
----

WINBOND
25X20BVNIG
0951

13
------

2252AI
01T
AHKY

14 DISPLAY CABLE
----------------------------

ED060SC4(LF)
EMR60A1020(B44)
E0R004441K1M00141BT

800x600 6" EPD:electronic paper display
AZ DISPLAYS

15 3G MODULE
----------------------

WYLESS TM TD688
TD-SCDMA/GSM 双模无线数据终端
S/N: 021310042131479
IMEI: 353037025070595
CMIIT ID:2009CP0724
HOJY 深圳市华域无线技术有限公司

OM6361EL/2
9R910026 01
ESD09202
TD60291
Thunderbird

16 PCB
-----------

GREATWALL
EB6510_V1.0

从网上获取到的信息
===========================

(1) Hanlin v5 的硬件与此非常接近(cpu, e-ink controller 相同!) 下面是从网上找到的 v5 主板照片


(2) 已下载 Hanlin v5 官方提供源代码(u-boot, kernel, cross toolchain...)

从jinke网站下载(需注册+email激活)GPL_FOR_V5.tar.gz, 里面包含了 crosstool(gcc+glibc), kernel 源码等. 没有u-boot!! README.txt 包含简单的说明

用 crosstool 建造 toolchain(基于glibc). 我更想用 uclibc...

kernel .config 里面给的内核启动参数为 noinitrd root=/dev/mtdblock2 rootfstype=cramfs init=/linuxrc console=ttySAC0 mem=128M

关 于处理器选择了: Support ARM926T processor, S3C24XX Platform support , S3C MTD has 4 partitions, S3C2410 UART to use for low-level messages: (0), S3C2410 DMA support

没有看到有电纸书显示屏的设备驱动(关心!)? 可能没放在kernel source tree 中...

没有u-boot, 没有 显示屏驱动, 对我似乎没有什么用. 开源??? 我说怎么jinke公司这么open呢?

(3) Openinkpot 已经破解 hanlin v3; v5 他们似乎还在进行中. 粗略浏览了openinkpot 的源码git, 没找到针对v5的. (因为有 hanlin 官方源码, 就不情愿花时间去找了)

(4) 经过一些google, 有一些信息:
  • kernel 2.6.3x 中已经包含了对Epson E-ink Broadsheet 的驱动(CONFIG_FB_BROADSHEET).
  • S1D13521 = D135211B(Amason Kindle 等都是用的这个芯片), 芯片印刷为D135211B..., 实际型号为 S1D13521
  • 目前使用的电纸屏(EPD)驱动器只有2个, 要么是爱普生Broadsheet 要么是另一个记不清了(Apollo?)
  • 名为Jaya的人有一个ppt(Penguins prosper with epaper ), 说到除了broadsheet 的fb驱动外, 还需要其他的东东, waveform, 温度感应什么的, 好像没有这么简单? 这个人好像就是openinkpot发起者