Related
I've been searching every where and not getting a good answer for this. Does the Gen8 USB host mode support USB serial tty ports? This thread:
http://forum.xda-developers.com/showthread.php?t=863853
seems to point at the possibility.
I understand that it would need to have a host side CDC driver and appropriate kernel support. Does anyone know how much of that, if any, exists in the stock Froyo install?
If it does not exist, what does it take? Is it reasonable to think about compiling a driver and modprobe'ing it in (assuming kernel support)? (I'm not afraid to try it, I wrote my first driver back in the days of punch cards, but.... I've only just installed the Android SDK and unboxed my Archos 70 four days ago -- I should be considered clueless but trainable. Links and other clues much appreciate.)
-dave
It works with usb-acm driver out of the box.
I have been trying to connect a FTDI Serial to USB converter on an A101.
The module is properly detected and shows up in dmesg and lsusb.
However, /dev/ttyUSBx is not assigned. I would have expected this address in linux, so maybe I has another name?
@Tizot: do you know more about this?
b.serengeti said:
I have been trying to connect a FTDI Serial to USB converter on an A101.
The module is properly detected and shows up in dmesg and lsusb.
However, /dev/ttyUSBx is not assigned. I would have expected this address in linux, so maybe I has another name?
@Tizot: do you know more about this?
Click to expand...
Click to collapse
Have you checked /dev/tty0 or /dev/tty1? I haven't done it in a while, but I'm pretty sure it was one of those.
This is my list of devices after I plug the converter:
Code:
# ls -l
total 0
crw------- 1 root root 189, 1 Jul 20 21:57 1-2
crw------- 1 root root 189, 129 Jul 20 22:04 2-1
crw-rw-rw- 1 root root 248, 0 Jul 20 21:57 DspBridge
crw-rw-rw- 1 root root 10, 233 Jul 20 21:57 accel_ctrl
crw-rw-r-- 1 storage 1001 10, 61 Jul 20 21:57 alarm
crw-rw-rw- 1 root root 10, 63 Jul 20 21:57 ashmem
crw-rw-rw- 1 root root 10, 59 Jul 20 21:57 binder
drwxr-xr-x 3 root root 760 Jul 20 21:57 block
crw------- 1 root root 5, 1 Jul 20 21:58 console
crw------- 1 root root 10, 55 Jul 20 21:57 cpu_dma_latency
drwxr-xr-x 4 storage 1000 0 Jul 20 21:57 cpuctl
crw------- 1 root root 10, 60 Jul 20 21:57 device-mapper
crwxrwxrwx 1 root root 10, 241 Jul 20 21:57 dmalloc
crwxr-xr-x 1 root root 230, 0 Jul 20 21:57 dsplink
drwxr-xr-x 4 root root 80 Jul 20 21:57 dvb
crw-rw-rw- 1 root root 29, 0 Jul 20 21:57 fb0
crw-rw-rw- 1 root root 1, 7 Jul 20 21:57 full
crw------- 1 root root 10, 229 Jul 20 21:57 fuse
drwxr-xr-x 2 root root 40 Jul 20 21:57 gadget
drwxr-xr-x 2 root root 60 Jul 20 21:57 graphics
crwxr-xr-x 1 root root 10, 239 Jul 20 21:57 hdmi
crw-rw-rw- 1 root root 247, 0 Jul 20 21:57 hdmitx
crw------- 1 root root 89, 1 Jul 20 21:57 i2c-1
crw------- 1 root root 89, 2 Jul 20 21:57 i2c-2
crw------- 1 root root 89, 3 Jul 20 21:57 i2c-3
drwxr-xr-x 2 root root 340 Jul 20 21:57 input
crw-r----- 1 root root 1, 2 Jul 20 21:57 kmem
crw------- 1 root root 1, 11 Jul 20 21:57 kmsg
drwxr-xr-x 2 root root 100 Jul 20 21:57 log
crw-r----- 1 root root 1, 1 Jul 20 21:57 mem
drwxr-xr-x 2 root root 40 Jul 20 21:57 mtp
crw------- 1 root root 10, 54 Jul 20 21:57 network_latency
crw------- 1 root root 10, 53 Jul 20 21:57 network_throughput
crw-rw-rw- 1 root root 1, 3 Jul 20 21:57 null
crw------- 1 root root 250, 0 Jul 20 21:57 omap-previewer
crw------- 1 root root 249, 0 Jul 20 21:57 omap-resizer
crw-rw-rw- 1 root root 30, 0 Jul 20 21:57 omaplfb
prw-rw-rw- 1 root root 0 Jul 20 21:57 pm_server_in
prw-rw-rw- 1 root root 0 Jul 20 21:57 pm_server_out
crw-rw---- 1 1001 1016 108, 0 Jul 20 21:57 ppp
crw-rw-rw- 1 root root 5, 2 Jul 20 22:28 ptmx
drwxr-xr-x 2 root root 0 Jan 1 1970 pts
crw-rw-rw- 1 root root 251, 0 Jul 20 21:57 pvrsrvkm
crw------- 1 root root 81, 3 Jul 20 21:57 radio0
crw-rw-rw- 1 root root 1, 8 Jul 20 21:57 random
crw------- 1 root root 254, 0 Jul 20 21:57 rtc0
brwxr-xr-x 1 root root 8, 0 Jul 20 21:57 sda
drwxrwxrwt 2 root root 60 Jul 20 21:57 shm
drwxr-xr-x 2 root root 280 Jul 20 21:57 snd
drwxrwxr-x 2 root 3004 200 Jul 20 21:57 socket
crw------- 1 root root 246, 0 Jul 20 21:57 tifm
crw-rw-rw- 1 root root 5, 0 Jul 20 21:57 tty
crw-rw---- 1 root 1000 4, 0 Jul 20 21:57 tty0
crw------- 1 root root 4, 1 Jul 20 21:57 tty1
crw------- 1 root root 4, 10 Jul 20 21:57 tty10
crw------- 1 root root 4, 11 Jul 20 21:57 tty11
crw------- 1 root root 4, 12 Jul 20 21:57 tty12
crw------- 1 root root 4, 13 Jul 20 21:57 tty13
crw------- 1 root root 4, 14 Jul 20 21:57 tty14
crw------- 1 root root 4, 15 Jul 20 21:57 tty15
crw------- 1 root root 4, 16 Jul 20 21:57 tty16
crw------- 1 root root 4, 17 Jul 20 21:57 tty17
crw------- 1 root root 4, 18 Jul 20 21:57 tty18
crw------- 1 root root 4, 19 Jul 20 21:57 tty19
crw------- 1 root root 4, 2 Jul 20 21:57 tty2
crw------- 1 root root 4, 20 Jul 20 21:57 tty20
crw------- 1 root root 4, 21 Jul 20 21:57 tty21
crw------- 1 root root 4, 22 Jul 20 21:57 tty22
crw------- 1 root root 4, 23 Jul 20 21:57 tty23
crw------- 1 root root 4, 24 Jul 20 21:57 tty24
crw------- 1 root root 4, 25 Jul 20 21:57 tty25
crw------- 1 root root 4, 26 Jul 20 21:57 tty26
crw------- 1 root root 4, 27 Jul 20 21:57 tty27
crw------- 1 root root 4, 28 Jul 20 21:57 tty28
crw------- 1 root root 4, 29 Jul 20 21:57 tty29
crw------- 1 root root 4, 3 Jul 20 21:57 tty3
crw------- 1 root root 4, 30 Jul 20 21:57 tty30
crw------- 1 root root 4, 31 Jul 20 21:57 tty31
crw------- 1 root root 4, 32 Jul 20 21:57 tty32
crw------- 1 root root 4, 33 Jul 20 21:57 tty33
crw------- 1 root root 4, 34 Jul 20 21:57 tty34
crw------- 1 root root 4, 35 Jul 20 21:57 tty35
crw------- 1 root root 4, 36 Jul 20 21:57 tty36
crw------- 1 root root 4, 37 Jul 20 21:57 tty37
crw------- 1 root root 4, 38 Jul 20 21:57 tty38
crw------- 1 root root 4, 39 Jul 20 21:57 tty39
crw------- 1 root root 4, 4 Jul 20 21:57 tty4
crw------- 1 root root 4, 40 Jul 20 21:57 tty40
crw------- 1 root root 4, 41 Jul 20 21:57 tty41
crw------- 1 root root 4, 42 Jul 20 21:57 tty42
crw------- 1 root root 4, 43 Jul 20 21:57 tty43
crw------- 1 root root 4, 44 Jul 20 21:57 tty44
crw------- 1 root root 4, 45 Jul 20 21:57 tty45
crw------- 1 root root 4, 46 Jul 20 21:57 tty46
crw------- 1 root root 4, 47 Jul 20 21:57 tty47
crw------- 1 root root 4, 48 Jul 20 21:57 tty48
crw------- 1 root root 4, 49 Jul 20 21:57 tty49
crw------- 1 root root 4, 5 Jul 20 21:57 tty5
crw------- 1 root root 4, 50 Jul 20 21:57 tty50
crw------- 1 root root 4, 51 Jul 20 21:57 tty51
crw------- 1 root root 4, 52 Jul 20 21:57 tty52
crw------- 1 root root 4, 53 Jul 20 21:57 tty53
crw------- 1 root root 4, 54 Jul 20 21:57 tty54
crw------- 1 root root 4, 55 Jul 20 21:57 tty55
crw------- 1 root root 4, 56 Jul 20 21:57 tty56
crw------- 1 root root 4, 57 Jul 20 21:57 tty57
crw------- 1 root root 4, 58 Jul 20 21:57 tty58
crw------- 1 root root 4, 59 Jul 20 21:57 tty59
crw------- 1 root root 4, 6 Jul 20 21:57 tty6
crw------- 1 root root 4, 60 Jul 20 21:57 tty60
crw------- 1 root root 4, 61 Jul 20 21:57 tty61
crw------- 1 root root 4, 62 Jul 20 21:57 tty62
crw------- 1 root root 4, 63 Jul 20 21:57 tty63
crw------- 1 root root 4, 7 Jul 20 21:57 tty7
crw------- 1 root root 4, 8 Jul 20 21:57 tty8
crw------- 1 root root 4, 9 Jul 20 21:57 tty9
crw-rw-rw- 1 1002 1002 4, 64 Jul 20 21:57 ttyS0
crw------- 1 root root 4, 65 Jul 20 21:57 ttyS1
crw-rw-rw- 1 root root 4, 66 Jul 20 21:57 ttyS2
crw-rw---- 1 root 1000 10, 62 Jul 20 21:57 twl4030-madc
crw-rw---- 1 storage 1002 10, 223 Jul 20 21:57 uinput
crw-rw-rw- 1 root root 1, 9 Jul 20 21:58 urandom
crw------- 1 root root 189, 0 Jul 20 21:57 usb1
crw------- 1 root root 189, 128 Jul 20 22:04 usb2
crw------- 1 root root 252, 1 Jul 20 21:57 usbdev1.1_ep00
crw------- 1 root root 252, 0 Jul 20 21:57 usbdev1.1_ep81
crw------- 1 root root 252, 6 Jul 20 21:57 usbdev1.2_ep00
crw------- 1 root root 252, 3 Jul 20 21:57 usbdev1.2_ep02
crw------- 1 root root 252, 5 Jul 20 21:57 usbdev1.2_ep04
crw------- 1 root root 252, 2 Jul 20 21:57 usbdev1.2_ep81
crw------- 1 root root 252, 4 Jul 20 21:57 usbdev1.2_ep83
crw------- 1 root root 252, 8 Jul 20 22:04 usbdev2.1_ep00
crw------- 1 root root 252, 7 Jul 20 22:04 usbdev2.1_ep81
crw------- 1 root root 252, 11 Jul 20 22:04 usbdev2.2_ep00
crw------- 1 root root 252, 10 Jul 20 22:04 usbdev2.2_ep02
crw------- 1 root root 252, 9 Jul 20 22:04 usbdev2.2_ep81
crw------- 1 root root 253, 0 Jul 20 21:57 usbmon0
crw------- 1 root root 253, 1 Jul 20 21:57 usbmon1
crw------- 1 root root 253, 2 Jul 20 22:04 usbmon2
crw------- 1 root root 7, 0 Jul 20 21:57 vcs
crw------- 1 root root 7, 128 Jul 20 21:57 vcsa
crwxrwxrwx 1 root root 81, 0 Jul 20 21:57 video0
crwxrwxrwx 1 root root 81, 1 Jul 20 21:57 video1
crwxrwxrwx 1 root root 81, 2 Jul 20 21:57 video2
crw------- 1 root root 10, 130 Jul 20 21:57 watchdog
crw-rw-rw- 1 root root 1, 5 Jul 20 21:57 zero
the new dev that appear are
2-1
usbdev2.2_*
Unfortunately, all of these have no access rights for non-root users.
Code:
# dmesg
.....
usb usb2: usb resume
hub 2-0:1.0: hub_resume
hub 2-0:1.0: port 1: status 0101 change 0001
hub 2-0:1.0: state 7 ports 1 chg 0002 evt 0000
hub 2-0:1.0: port 1, status 0101, change 0000, 12 Mb/s
usb 2-1: new full speed USB device using musb_hdrc and address 2
usb 2-1: ep0 maxpacket = 8
usb 2-1: default language 0x0409
usb 2-1: New USB device found, idVendor=0403, idProduct=6001
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-1: Product: TTL232RG-VREG3V3
usb 2-1: Manufacturer: FTDI
usb 2-1: SerialNumber: FTSM9CPA
usb 2-1: uevent
usb 2-1: usb_probe_device
usb 2-1: configuration #1 chosen from 1 choice
usb 2-1: adding 2-1:1.0 (config #1, interface 0)
usb 2-1:1.0: uevent
drivers/usb/core/inode.c: creating file '002'
hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
hub 2-0:1.0: port 1 enable change, status 00000103
Code:
# lsusb
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 227d:0a19
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
This means that the device is properly detected. However, I would expect an assignement to a port in dmesg.
This is what I get on my OpenSuse 11.3 PC:
Code:
[ 5092.095250] usb 1-4: reset high speed USB device using ehci_hcd and address 4
[ 6240.088138] usb 1-4: reset high speed USB device using ehci_hcd and address 4
[ 6360.089017] usb 1-4: reset high speed USB device using ehci_hcd and address 4
[ 7368.722185] usb 2-1.4: new full speed USB device using ehci_hcd and address 5
[ 7368.813944] usb 2-1.4: New USB device found, idVendor=0403, idProduct=6001
[ 7368.813947] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 7368.813949] usb 2-1.4: Product: TTL232RG-VREG3V3
[ 7368.813951] usb 2-1.4: Manufacturer: FTDI
[ 7368.813953] usb 2-1.4: SerialNumber: FTSM9CPA
[ 7369.246761] usbcore: registered new interface driver usbserial
[ 7369.246794] USB Serial support registered for generic
[ 7369.247018] usbcore: registered new interface driver usbserial_generic
[ 7369.247020] usbserial: USB Serial Driver core
[ 7369.253357] USB Serial support registered for FTDI USB Serial Device
[ 7369.253457] ftdi_sio 2-1.4:1.0: FTDI USB Serial Device converter detected
[ 7369.253503] usb 2-1.4: Detected FT232RL
[ 7369.253505] usb 2-1.4: Number of endpoints 2
[ 7369.253846] usb 2-1.4: Endpoint 1 MaxPacketSize 64
[ 7369.253848] usb 2-1.4: Endpoint 2 MaxPacketSize 64
[ 7369.253849] usb 2-1.4: Setting MaxPacketSize 64
[ 7369.254055] usb 2-1.4: FTDI USB Serial Device converter now attached to ttyUSB0
[ 7369.254067] usbcore: registered new interface driver ftdi_sio
[ 7369.254069] ftdi_sio: v1.5.0:USB FTDI Serial Converters Driver
I tried to cat /dev/tty0 or tty1, ttyS0, ttyS2, 2-1, but no success in obtaining any data.
Is there a way to check to which port the device is connected or to set a configuration file to determine a priori the port?
If you use the multiboot menu from bubu you can turn on serial debugging see here http://dev.openaos.org/wiki/SettingUpMultiRootGen8#Debugging
Maurice
Thx divx118.
But this is not what I am looking for. I am connecting a serial device to the Archos, not the Archos as serial device to the PC. I am trying to find the port for this device. The PC example I gave was for the serial device connected to the PC.
Of course, it is possible that there is a missing support somewhere for it, but I just can't find the issue.
b.serengeti said:
Thx divx118.
But this is not what I am looking for. I am connecting a serial device to the Archos, not the Archos as serial device to the PC. I am trying to find the port for this device. The PC example I gave was for the serial device connected to the PC.
Of course, it is possible that there is a missing support somewhere for it, but I just can't find the issue.
Click to expand...
Click to collapse
Oh sorry, I was too quick with my answer. You could try irc and ask your question there.
http://www.openaos.org/chat or #openpma on irc.freenode.net.
Maurice
Hi,
I made an app to manage the Boot Logo and Boot Animation.
Forum post: http://forum.xda-developers.com/showthread.php?t=1076551
The app works on Defy and Milestone 2.
I want to add support for more devices but I need some info.
I need the output of the following command:
Code:
ls -R -l /dev
After that, I'll need more info.
Thanks.
/dev:
drwxr-xr-x root root 2011-05-27 09:02 mapper
drwxrwxrwx root root 2011-05-27 02:28 shm
crw------- root root 7, 134 2011-05-27 02:28 vcsa6
crw------- root root 7, 6 2011-05-27 02:28 vcs6
crw------- root root 7, 133 2011-05-27 02:28 vcsa5
crw------- root root 7, 5 2011-05-27 02:28 vcs5
crw------- root root 7, 132 2011-05-27 02:28 vcsa4
crw------- root root 7, 4 2011-05-27 02:28 vcs4
crw------- root root 7, 131 2011-05-27 02:28 vcsa3
crw------- root root 7, 3 2011-05-27 02:28 vcs3
crw------- root root 7, 130 2011-05-27 02:28 vcsa2
crw------- root root 7, 2 2011-05-27 02:28 vcs2
brw-rw---- root 6 179, 33 2011-05-27 02:28 mmcblk1p1
brw-rw---- root 6 179, 18 2011-05-27 02:28 mmcblk0p18
drwxr-xr-x root root 2011-05-27 02:28 disk
brw-rw---- root 6 179, 32 2011-05-27 02:28 mmcblk1
drwxr-xr-x root root 2011-05-27 02:28 char
srwxrwxrwx root root 2011-05-27 02:27 nvrm_daemon
drwxr-xr-x system system 2011-05-27 02:27 cpuctl
crw------- root root 251, 0 2011-05-27 02:27 usbmon0
crw-rw---- radio vpn 108, 0 2011-05-27 02:27 ppp
crw------- root root 7, 129 2011-05-27 02:27 vcsa1
crw------- root root 7, 1 2011-05-27 02:27 vcs1
crw------- root root 7, 128 2011-05-27 02:27 vcsa
crw------- root root 7, 0 2011-05-27 02:27 vcs
crw-rw---- radio system 66, 0 2011-05-27 09:00 ttySPI0
crw-r----- radio radio 234, 15 2011-05-27 02:27 ts0710mux15
crw-r----- radio radio 234, 14 2011-05-27 02:27 ts0710mux14
crw-r----- radio radio 234, 13 2011-05-27 02:27 ts0710mux13
crw-r----- radio radio 234, 12 2011-05-27 02:27 ts0710mux12
crw-r----- radio radio 234, 11 2011-05-27 02:27 ts0710mux11
crw-r----- radio radio 234, 10 2011-05-27 02:27 ts0710mux10
crw-r----- radio radio 234, 9 2011-05-27 02:28 ts0710mux9
crw-r----- radio radio 234, 8 2011-05-27 02:27 ts0710mux8
crw-r----- radio radio 234, 7 2011-05-27 02:27 ts0710mux7
crw-r----- radio radio 234, 6 2011-05-27 02:27 ts0710mux6
crw-r----- radio radio 234, 5 2011-05-27 08:40 ts0710mux5
crw-r----- radio radio 234, 4 2011-05-27 02:28 ts0710mux4
crw-r----- radio radio 234, 3 2011-05-27 08:55 ts0710mux3
crw-r----- radio radio 234, 2 2011-05-27 02:27 ts0710mux2
crw-r----- radio radio 234, 1 2011-05-27 07:40 ts0710mux1
crw-r----- radio radio 234, 0 2011-05-27 09:18 ts0710mux0
crw-rw-rw- root root 5, 2 2011-05-27 09:18 ptmx
crw------- root root 4, 63 2011-05-27 02:27 tty63
crw------- root root 4, 62 2011-05-27 02:27 tty62
crw------- root root 4, 61 2011-05-27 02:27 tty61
crw------- root root 4, 60 2011-05-27 02:27 tty60
crw------- root root 4, 59 2011-05-27 02:27 tty59
crw------- root root 4, 58 2011-05-27 02:27 tty58
crw------- root root 4, 57 2011-05-27 02:27 tty57
crw------- root root 4, 56 2011-05-27 02:27 tty56
crw------- root root 4, 55 2011-05-27 02:27 tty55
crw------- root root 4, 54 2011-05-27 02:27 tty54
crw------- root root 4, 53 2011-05-27 02:27 tty53
drwxr-xr-x root root 2011-05-27 09:02 block
crw------- root root 4, 52 2011-05-27 02:27 tty52
crw------- root root 4, 51 2011-05-27 02:27 tty51
crw------- root root 4, 50 2011-05-27 02:27 tty50
crw------- root root 4, 49 2011-05-27 02:27 tty49
crw------- root root 4, 48 2011-05-27 02:27 tty48
crw------- root root 4, 47 2011-05-27 02:27 tty47
crw------- root root 4, 46 2011-05-27 02:27 tty46
crw------- root root 4, 45 2011-05-27 02:27 tty45
crw------- root root 4, 44 2011-05-27 02:27 tty44
crw------- root root 4, 43 2011-05-27 02:27 tty43
crw------- root root 4, 42 2011-05-27 02:27 tty42
crw------- root root 4, 41 2011-05-27 02:27 tty41
crw------- root root 4, 40 2011-05-27 02:27 tty40
crw------- root root 4, 39 2011-05-27 02:27 tty39
crw------- root root 4, 38 2011-05-27 02:27 tty38
crw------- root root 4, 37 2011-05-27 02:27 tty37
crw------- root root 4, 36 2011-05-27 02:27 tty36
crw------- root root 4, 35 2011-05-27 02:27 tty35
crw------- root root 4, 34 2011-05-27 02:27 tty34
crw------- root root 4, 33 2011-05-27 02:27 tty33
crw------- root root 4, 32 2011-05-27 02:27 tty32
crw------- root root 4, 31 2011-05-27 02:27 tty31
crw------- root root 4, 30 2011-05-27 02:27 tty30
crw------- root root 4, 29 2011-05-27 02:27 tty29
crw------- root root 4, 28 2011-05-27 02:27 tty28
crw------- root root 4, 27 2011-05-27 02:27 tty27
crw------- root root 4, 26 2011-05-27 02:27 tty26
crw------- root root 4, 25 2011-05-27 02:27 tty25
crw------- root root 4, 24 2011-05-27 02:27 tty24
crw------- root root 4, 23 2011-05-27 02:27 tty23
crw------- root root 4, 22 2011-05-27 02:27 tty22
crw------- root root 4, 21 2011-05-27 02:27 tty21
crw------- root root 4, 20 2011-05-27 02:27 tty20
crw------- root root 4, 19 2011-05-27 02:27 tty19
crw------- root root 4, 18 2011-05-27 02:27 tty18
crw------- root root 4, 17 2011-05-27 02:27 tty17
crw------- root root 4, 16 2011-05-27 02:27 tty16
crw------- root root 4, 15 2011-05-27 02:27 tty15
crw------- root root 4, 14 2011-05-27 02:27 tty14
crw------- root root 4, 13 2011-05-27 02:27 tty13
crw------- root root 4, 12 2011-05-27 02:27 tty12
crw------- root root 4, 11 2011-05-27 02:27 tty11
crw------- root root 4, 10 2011-05-27 02:27 tty10
crw------- root root 4, 9 2011-05-27 02:27 tty9
crw------- root root 4, 8 2011-05-27 02:27 tty8
crw------- root root 4, 7 2011-05-27 02:27 tty7
crw------- root root 4, 6 2011-05-27 02:28 tty6
crw------- root root 4, 5 2011-05-27 02:28 tty5
crw------- root root 4, 4 2011-05-27 02:28 tty4
crw------- root root 4, 3 2011-05-27 02:28 tty3
crw------- mot_osh mot_osh 4, 2 2011-05-27 02:28 tty2
crw------- root root 4, 1 2011-05-27 02:28 tty1
crw-rw---- mot_osh mot_osh 4, 0 2011-05-27 02:27 tty0
crw------- root root 5, 1 2011-05-27 02:27 console
crw-rw-rw- root root 5, 0 2011-05-27 02:27 tty
drwxr-xr-x root root 2011-05-27 02:27 graphics
crw-rw-rw- root root 253, 7 2011-05-27 02:27 nvhost-ctrl
crw-rw-rw- root root 253, 6 2011-05-27 02:27 nvhost-dsi
crw-rw-rw- root root 253, 5 2011-05-27 02:27 nvhost-mpe
crw-rw-rw- root root 253, 4 2011-05-27 02:27 nvhost-vi
crw-rw-rw- root root 253, 3 2011-05-27 02:27 nvhost-isp
crw-rw-rw- root root 253, 2 2011-05-27 02:27 nvhost-gr2d
crw-rw-rw- root root 253, 1 2011-05-27 02:27 nvhost-gr3d
crw-rw-rw- root root 253, 0 2011-05-27 02:27 nvhost-display
crw------- root root 1, 11 2011-05-27 02:27 kmsg
crw-rw-rw- root root 1, 9 2011-05-27 02:27 urandom
crw-rw-rw- root root 1, 8 2011-05-27 02:27 random
crw-rw-rw- root root 1, 7 2011-05-27 02:27 full
crw-rw-rw- root root 1, 5 2011-05-27 02:27 zero
crw-rw-rw- root root 1, 3 2011-05-27 02:27 null
crw------- root root 1, 1 2011-05-27 02:27 mem
crw------- root root 10, 27 2011-05-27 02:27 network_throughput
crw------- root root 10, 28 2011-05-27 02:27 network_latency
crw------- root root 10, 29 2011-05-27 02:27 cpu_dma_latency
drwxr-xr-x root root 2011-05-27 02:27 log
crw-rw-rw- root root 10, 34 2011-05-27 02:27 binder
crw------- root root 10, 35 2011-05-27 02:27 device-mapper
crw------- root root 10, 130 2011-05-27 02:27 watchdog
crw-rw---- compass compass 10, 36 2011-05-27 02:27 akm8975_aot
crw-rw---- compass compass 10, 37 2011-05-27 02:27 akm8975_dev
crw-rw---- compass compass 10, 38 2011-05-27 02:27 kxtf9
crw-rw---- compass compass 10, 39 2011-05-27 02:27 isl29030
crw-rw---- root input 10, 40 2011-05-27 02:27 touchpad
crw-rw---- root mot_sec_rtc 10, 41 2011-05-27 02:27 cpcap_mot_rtc
crw-rw-r-- system radio 10, 42 2011-05-27 02:27 alarm
crw------- system root 10, 43 2011-05-27 02:27 aes1750
crw-rw---- system bluetooth 10, 223 2011-05-27 02:27 uinput
crw------- root root 10, 1 2011-05-27 02:27 psaux
crw-rw---- adb adb 10, 44 2011-05-27 02:27 android_adb_enable
crw-rw---- adb adb 10, 45 2011-05-27 02:27 android_adb
crwxrwxrwx root root 10, 46 2011-05-27 02:27 mtp
crw------- root root 10, 47 2011-05-27 02:27 usbnet_enable
crw------- root root 10, 48 2011-05-27 02:27 usb_device_mode
crw-rw---- root system 10, 49 2011-05-27 02:27 mdm_ctrl
crw-rw---- root system 10, 50 2011-05-27 02:27 sec
crw-rw-rw- root root 10, 51 2011-05-27 02:27 ashmem
crw-rw---- mot_tpapi mot_tpapi 10, 52 2011-05-27 02:27 nvaes
crw-rw-rw- root root 10, 53 2011-05-27 02:27 nvrpc
crw-rw---- root system 10, 54 2011-05-27 02:27 knvrm
crw-rw-rw- root root 10, 55 2011-05-27 02:27 nvrm
crw-rw---- root system 10, 56 2011-05-27 02:27 knvos
crw-rw-rw- root root 10, 57 2011-05-27 02:27 nvos
crw------- root root 10, 58 2011-05-27 02:28 knvmap
crw-rw-rw- root root 10, 59 2011-05-27 09:13 nvmap
crw------- root root 10, 60 2011-05-27 02:27 rfkill
crw-rw---- root mot_pwric 10, 61 2011-05-27 02:27 cpcap_batt
crw-rw---- root mot_pwric 10, 62 2011-05-27 02:27 cpcap_uc
crw-rw-rw- root mot_pwric 10, 63 2011-05-27 02:27 cpcap
crw------- root root 254, 0 2011-05-27 02:27 rtc0
crw------- root root 250, 1 2011-05-27 02:27 ttyGS1
crwxrwxrwx root mot_usb 250, 0 2011-05-27 02:27 ttyGS0
drwxr-xr-x root root 2011-05-27 02:28 input
crw-rw---- mot_tcmd camera 89, 3 2011-05-27 02:27 i2c-3
crw-rw---- root mot_tcmd 89, 2 2011-05-27 02:27 i2c-2
crw-rw---- root mot_tcmd 89, 1 2011-05-27 02:27 i2c-1
crw-rw---- root mot_tcmd 89, 0 2011-05-27 02:27 i2c-0
crw-r----- radio radio 252, 4 2011-05-27 02:27 ttyHS4
crw-r----- radio radio 252, 3 2011-05-27 02:27 ttyHS3
crw-rw---- bluetooth bluetooth 252, 2 2011-05-27 02:27 ttyHS2
crw-rw---- mot_whisper mot_whisper 252, 0 2011-05-27 02:40 ttyHS0
crw------- root root 189, 129 2011-05-27 02:27 usbdev2.2
crwxrwxrwx root radio 188, 4 2011-05-27 02:27 ttyUSB4
crwxrwxrwx root mot_tcmd 188, 3 2011-05-27 02:27 ttyUSB3
crwxrwxrwx root radio 188, 2 2011-05-27 02:27 ttyUSB2
crwxrwxrwx root root 188, 1 2011-05-27 02:27 ttyUSB1
crwxrwxrwx root diag 188, 0 2011-05-27 02:27 ttyUSB0
crw------- root root 189, 129 2011-05-27 02:27 2-1
crw------- root root 189, 128 2011-05-27 02:27 usbdev2.1
crw------- root root 189, 128 2011-05-27 02:27 usb2
crw------- root root 251, 2 2011-05-27 02:27 usbmon2
crw------- root root 189, 0 2011-05-27 02:27 usbdev1.1
crw------- root root 189, 0 2011-05-27 02:27 usb1
crw------- root root 251, 1 2011-05-27 02:27 usbmon1
crw-r----- radio radio 4, 64 2011-05-27 02:27 ttyS0
drwxr-xr-x root root 2011-05-27 02:28 socket
drwxr-xr-x root root 1969-12-31 18:00 pts
/dev/mapper:
brw-rw---- root 6 254, 0 2011-05-27 09:02 7f73feb1fb3b939ed8bba05ded9d2135
crw------- root root 10, 35 2011-05-27 09:02 control
/dev/shm:
/dev/disk:
drwxr-xr-x root root 2011-05-27 02:28 by-label
drwxr-xr-x root root 2011-05-27 09:02 by-uuid
drwxr-xr-x root root 2011-05-27 02:28 by-path
drwxr-xr-x root root 2011-05-27 09:02 by-id
/dev/disk/by-label:
lrwxrwxrwx root root 2011-05-27 02:28 MB860-EXT -> ../../mmcblk1p1
lrwxrwxrwx root root 2011-05-27 02:28 MB860 -> ../../mmcblk0p18
/dev/disk/by-uuid:
lrwxrwxrwx root root 2011-05-27 09:02 C0DF-10DD -> ../../mapper/7f73feb1fb3b939ed8bba05ded9d2135
lrwxrwxrwx root root 2011-05-27 02:28 5338-1602 -> ../../mmcblk1p1
lrwxrwxrwx root root 2011-05-27 02:28 60C8-09E2 -> ../../mmcblk0p18
lrwxrwxrwx root root 2011-05-27 02:28 40B2-AA14 -> ../../mmcblk1
/dev/disk/by-path:
lrwxrwxrwx root root 2011-05-27 02:28 platform-mmc2:b368-part1 -> ../../mmcblk1p1
lrwxrwxrwx root root 2011-05-27 02:28 platform-mmc2:b368 -> ../../mmcblk1
/dev/disk/by-id:
lrwxrwxrwx root root 2011-05-27 09:02 dm-name-7f73feb1fb3b939ed8bba05ded9d2135 -> ../../mapper/7f73feb1fb3b939ed8bba05ded9d2135
lrwxrwxrwx root root 2011-05-27 02:28 mmc-52006_0x00001afe-part1 -> ../../mmcblk1p1
lrwxrwxrwx root root 2011-05-27 02:28 mmc-52006_0x00001afe -> ../../mmcblk1
/dev/char:
lrwxrwxrwx root root 2011-05-27 02:28 13:74 -> ../input/event10
lrwxrwxrwx root root 2011-05-27 02:28 13:32 -> ../input/mouse0
lrwxrwxrwx root root 2011-05-27 02:28 13:73 -> ../input/event9
lrwxrwxrwx root root 2011-05-27 02:28 13:71 -> ../input/event7
lrwxrwxrwx root root 2011-05-27 02:28 13:70 -> ../input/event6
lrwxrwxrwx root root 2011-05-27 02:28 13:69 -> ../input/event5
lrwxrwxrwx root root 2011-05-27 02:28 13:72 -> ../input/event8
lrwxrwxrwx root root 2011-05-27 02:28 13:67 -> ../input/event3
lrwxrwxrwx root root 2011-05-27 02:28 13:68 -> ../input/event4
lrwxrwxrwx root root 2011-05-27 02:28 13:65 -> ../input/event1
lrwxrwxrwx root root 2011-05-27 02:28 13:64 -> ../input/event0
lrwxrwxrwx root root 2011-05-27 02:28 13:63 -> ../input/mice
lrwxrwxrwx root root 2011-05-27 02:28 13:66 -> ../input/event2
/dev/cpuctl:
drwxr-xr-x root root 2011-05-27 02:27 bg_non_interactive
drwxr-xr-x root root 2011-05-27 02:27 fg_boost
-rw-r--r-- root root 0 2011-05-27 02:27 cpu.shares
-rw-r--r-- root root 0 2011-05-27 02:27 release_agent
--w--w--w- root root 0 2011-05-27 02:27 cgroup.event_control
-rw-r--r-- root root 0 2011-05-27 02:27 notify_on_release
-r--r--r-- root root 0 2011-05-27 02:27 cgroup.procs
-rwxrwxrwx system system 0 2011-05-27 02:27 tasks
/dev/cpuctl/bg_non_interactive:
-rw-r--r-- root root 0 2011-05-27 02:27 cpu.shares
--w--w--w- root root 0 2011-05-27 02:27 cgroup.event_control
-rw-r--r-- root root 0 2011-05-27 02:27 notify_on_release
-r--r--r-- root root 0 2011-05-27 02:27 cgroup.procs
-rwxrwxrwx system system 0 2011-05-27 02:27 tasks
/dev/cpuctl/fg_boost:
-rw-r--r-- root root 0 2011-05-27 02:27 cpu.shares
--w--w--w- root root 0 2011-05-27 02:27 cgroup.event_control
-rw-r--r-- root root 0 2011-05-27 02:27 notify_on_release
-r--r--r-- root root 0 2011-05-27 02:27 cgroup.procs
-rwxrwxrwx system system 0 2011-05-27 02:27 tasks
/dev/block:
lrwxrwxrwx root root 2011-05-27 09:02 254:0 -> ../mapper/7f73feb1fb3b939ed8bba05ded9d2135
brw------- root root 254, 0 2011-05-27 09:02 dm-0
lrwxrwxrwx root root 2011-05-27 02:28 179:33 -> ../mmcblk1p1
lrwxrwxrwx root root 2011-05-27 02:28 179:18 -> ../mmcblk0p18
lrwxrwxrwx root root 2011-05-27 02:28 179:32 -> ../mmcblk1
drwxr-xr-x root root 2011-05-27 02:27 vold
brw-rw---- root mot_tcmd 179, 33 2011-05-27 02:27 mmcblk1p1
brw------- root root 179, 32 2011-05-27 02:27 mmcblk1
brw------- root root 7, 7 2011-05-27 02:27 loop7
brw------- root root 7, 6 2011-05-27 02:27 loop6
brw------- root root 7, 5 2011-05-27 02:27 loop5
brw------- root root 7, 4 2011-05-27 02:27 loop4
brw------- root root 7, 3 2011-05-27 02:27 loop3
brw------- root root 7, 2 2011-05-27 02:27 loop2
brw------- root root 7, 1 2011-05-27 02:27 loop1
brw------- root root 7, 0 2011-05-27 09:02 loop0
brw------- root root 179, 18 2011-05-27 02:27 mmcblk0p18
brw------- root root 179, 17 2011-05-27 02:27 mmcblk0p17
brw------- root root 179, 16 2011-05-27 02:27 mmcblk0p16
brw------- root root 179, 15 2011-05-27 02:27 mmcblk0p15
brw------- root root 179, 14 2011-05-27 02:27 mmcblk0p14
brw------- root root 179, 13 2011-05-27 02:27 mmcblk0p13
brw------- root root 179, 12 2011-05-27 02:27 mmcblk0p12
brw------- root root 179, 11 2011-05-27 02:27 mmcblk0p11
brw------- root root 179, 10 2011-05-27 02:27 mmcblk0p10
brw------- root root 179, 9 2011-05-27 02:27 mmcblk0p9
brw------- root root 179, 8 2011-05-27 02:27 mmcblk0p8
brw-rw---- root mot_tcmd 179, 7 2011-05-27 02:27 mmcblk0p7
brw-rw---- root mot_tcmd 179, 6 2011-05-27 02:27 mmcblk0p6
brw------- root root 179, 5 2011-05-27 02:27 mmcblk0p5
brw------- root root 179, 4 2011-05-27 02:27 mmcblk0p4
brw------- root root 179, 3 2011-05-27 02:27 mmcblk0p3
brw------- root root 179, 2 2011-05-27 02:27 mmcblk0p2
brw------- root root 179, 1 2011-05-27 02:27 mmcblk0p1
brw------- root root 179, 0 2011-05-27 02:27 mmcblk0
/dev/block/vold:
brw-rw---- root root 179, 33 2011-05-27 02:28 179:33
brw-rw---- root root 179, 32 2011-05-27 02:27 179:32
brw-rw---- root root 179, 18 2011-05-27 02:28 179:18
/dev/graphics:
crw-rw---- root graphics 29, 0 2011-05-27 02:27 fb0
/dev/log:
crw-rw--w- root log 10, 30 2011-05-27 02:27 system
crw-rw--w- root log 10, 31 2011-05-27 02:27 radio
crw-rw--w- root log 10, 32 2011-05-27 02:27 events
crw-rw--w- root log 10, 33 2011-05-27 02:27 main
/dev/input:
crw-rw---- root input 13, 74 2011-05-27 02:28 event10
crw-rw---- root input 13, 32 2011-05-27 02:28 mouse0
crw-rw---- root input 13, 73 2011-05-27 02:28 event9
crw-rw---- root input 13, 72 2011-05-27 02:28 event8
drwxr-xr-x root root 2011-05-27 02:28 by-id
crw-rw---- root input 13, 71 2011-05-27 02:27 event7
crw-rw---- root input 13, 70 2011-05-27 02:27 event6
crw-rw---- root input 13, 69 2011-05-27 02:27 event5
crw-rw---- root input 13, 68 2011-05-27 02:27 event4
crw-rw---- root input 13, 67 2011-05-27 02:27 event3
crw-rw---- root input 13, 66 2011-05-27 02:27 event2
crw-rw---- root input 13, 63 2011-05-27 02:27 mice
crw-rw---- root input 13, 64 2011-05-27 02:27 event0
crw-rw---- root input 13, 65 2011-05-27 02:27 event1
/dev/input/by-id:
lrwxrwxrwx root root 2011-05-27 02:28 touchscreen -> ../event3
/dev/socket:
srw-rw---- wifi wifi 2011-05-27 02:28 wpa_eth0
srw-rw---- mot_secclkd mot_secclkd 2011-05-27 02:27 secclk_socket
srw-rw---- mot_tcmd mot_tcmd 2011-05-27 02:27 local_tcmd
srw------- mot_tcmd mot_tcmd 2011-05-27 02:27 batch_socket
srw-rw-rw- root root 2011-05-27 02:27 keystore
srw------- system system 2011-05-27 02:27 installd
srw-rw-rw- bluetooth bluetooth 2011-05-27 02:27 dbus
srw-rw-rw- root root 2011-05-27 02:27 zygote
srw-rw-rw- root mot_tcmd 2011-05-27 02:27 usbd
srw-rw---- mot_accy mot_accy 2011-05-27 02:27 battdsock
srw-rw---- root radio 2011-05-27 02:27 rild
srw-rw---- radio system 2011-05-27 02:27 rild-debug
srw-rw---- root system 2011-05-27 02:27 netd
srw-rw---- root mount 2011-05-27 02:27 vold
srw-rw-rw- root root 2011-05-27 02:27 property_service
/dev/pts:
crw------- app_132 app_132 136, 1 2011-05-27 09:16 1
crw------- root root 136, 2 2011-05-27 02:28 2
crw------- root root 136, 0 2011-05-27 09:18 0
Sent from my MB860 using XDA App
Thanks.
Please run the following commands:
Code:
fdisk -l /dev/block/mmcblk0
and then
Code:
fdisk -l /dev/block/mmcblk1
Please post the output inside an [ code ] and [ /code ] tag (remove the spaces before and after [ and ].
Thanks in advance.
Code:
# fdisk -l /dev/block/mmcblk0
Disk /dev/block/mmcblk0: 16.0 GB, 16044785664 bytes
1 heads, 16 sectors/track, 1958592 cylinders
Units = cylinders of 16 * 512 = 8192 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 65 512 3584 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/block/mmcblk0p2 513 576 512 83 Linux
Partition 2 does not end on cylinder boundary.
/dev/block/mmcblk0p3 577 832 2048 83 Linux
Partition 3 does not end on cylinder boundary.
/dev/block/mmcblk0p4 833 1937856 15496192 5 Extended
Partition 4 does not end on cylinder boundary.
/dev/block/mmcblk0p5 897 1024 1024 83 Linux
/dev/block/mmcblk0p6 1025 1088 512 83 Linux
/dev/block/mmcblk0p7 1089 1152 512 83 Linux
/dev/block/mmcblk0p8 1153 1280 1024 83 Linux
/dev/block/mmcblk0p9 1281 1536 2048 83 Linux
/dev/block/mmcblk0p10 1537 2560 8192 83 Linux
/dev/block/mmcblk0p11 2561 3584 8192 83 Linux
/dev/block/mmcblk0p12 3585 44544 327680 83 Linux
/dev/block/mmcblk0p13 44545 142848 786432 83 Linux
/dev/block/mmcblk0p14 142849 145408 20480 83 Linux
/dev/block/mmcblk0p15 145409 227328 655360 83 Linux
/dev/block/mmcblk0p16 227329 489472 2097152 83 Linux
/dev/block/mmcblk0p17 489473 533632 353280 83 Linux
/dev/block/mmcblk0p18 533633 1937856 11233792 83 Linux
# fdisk -l /dev/block/mmcblk1
Disk /dev/block/mmcblk1: 3965 MB, 3965190144 bytes
256 heads, 63 sectors/track, 480 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/block/mmcblk1p1 * 1 481 3871232 c W95 FAT32 (LBA)
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(1023, 255, 63) logical=(0, 32, 33)
Partition 1 has different physical/logical endings:
phys=(1023, 255, 63) logical=(480, 48, 48)
Hum.
Thanks.
Can you type the following commands please:
Code:
su
dd if=/dev/block/mmcblk0p5 of=/sdcard/mmcblk0p5.dump bs=1024
dd if=/dev/block/mmcblk0p6 of=/sdcard/mmcblk0p6.dump bs=1024
dd if=/dev/block/mmcblk0p7 of=/sdcard/mmcblk0p7.dump bs=1024
dd if=/dev/block/mmcblk0p8 of=/sdcard/mmcblk0p8.dump bs=1024
dd if=/dev/block/mmcblk0p9 of=/sdcard/mmcblk0p9.dump bs=1024
It will create 5 files on your SD Card.
Please zip those files and post.
Thanks.
http://db.tt/zGZBnv8
Sorry. Mobile right now and Dropbox was the easiest.
Transcribed via Vivid Lime'd Atrix FourGee
Thanks man.
I found the partition that holds the boot logo on your dumps.
Now I need to find the boot logo resolution.
I would assume its the same as the phone Res. 540x960
Transcribed via Vivid Lime'd Atrix FourGee
Unfortunatelly, the logo does not have the same res of the phone.
IE: Defy and Milestone 1 & 2 has an 854x480 resolution screen but the logo has 480x182.
Well that's no good. I would hit up one of the major atrix devs like kennethpenn or ririal. They could probably tell you.
Transcribed via Vivid Lime'd Atrix FourGee
dedraks said:
Unfortunatelly, the logo does not have the same res of the phone.
IE: Defy and Milestone 1 & 2 has an 854x480 resolution screen but the logo has 480x182.
Click to expand...
Click to collapse
The stock boot logo is 540 x 960 up to 30fps
I have pushed many boot logos onto my phone and I use the 540 x 960 resolution and it comes out perfectly
Introduction
In order to condence information, I put together a condenced "lessons learned" guide from [DISCUSSION] on the boot loader and The Nook Tablet Hack Pack. This thread will cover Normal Operation, Booting from SDCard and Bootloader Exploits which alter the boot sequence. If you want to come up-to-speed on the Nook Tablet's security, read on, otherwise it is alot of information to take in.
Part I - Data, Partition Structure & Functional blocks
In this section I will outline the Partition Structure and Functional blocks of the Nook Tablet.
Hardware Configuration
Hardware based input registers - Several registers inside the OMAP4430 processor are tied to physical resistors which serve as configuration bits. If you modify the resistor to be high or low, it will change the register in the device. For example, the SYSTEM_STATUS register contains 6 BOOT_MODE bits which are tied to resistors and any change to these resistors will affect the boot mode. IE. Boot from USB, MMC, MMC2 and so on.
E-Fuse and Secure Rom - The OMAP4430 begins its hardware-initiated chain-of-trust with preburnt registers/secure rom AKA E-Fuse. These E-Fuses serve as a static reference for items which we cannot change and would have severe concequences if they were chaged. They serve to identify the processor and firmware configurations in later stages of the boot sequence. By containing the Secure ROM within the processor, the secure boot sequence is effectively "hardware initiated"
Secure Boot
The following block cannot be touched by any known means outside of factory programming.
IROM - Inside the OMAP4430, there is a ROM which we will refer to as IROM. This IROM cannot be modified. The IROM's function is to initialize the System-on-a-chip. This bootloader (in a nutshell) tells the OMAP4430 that it's an OMAP4430 and initializes internal memory. The primary function of the IROM is to load the X-Loader. The IROM will check the consistancy and signature of X-Loader and then execute it.
Secure Blocks
The following blocks should be considered secure as modifying a single bit will cause a failure during consistancy checking. Each of these secure blocks are signed and modification can lead to an inoperative device.
the following are references to the partitions on the internal MMC:
X-Loader - Provides further initialization of the OMAP4430 including the much larger D-RAM. By initializing the D-RAM, the system is able to access a larger block of memory and load larger programs.
X-Loader is referred to by the alias xloader and can be found as a block in the following locations:
Code:
/dev/block/mmcblk0p1
/dev/block/platform/mmci-omap-hs.1/by-name/xloader
/dev/block/platform/mmci-omap-hs.1/by-num/p1
Xloader will check the consistancy and signature of U-Boot and then execute it
Das U-Boot - U-Boot is called such because it is a Universal Bootloader. It is designed to handle a wide array of chips and perform various system specific initialization tasks including initializing paripherals such as filesystems. U-Boot is where you will find the display and many other paripherals initialized. By default, U-Boot serves as a recovery as well as a bootloader. It has several options acessible through UART. It can be considered an entire operating system on it's own.
U-Boot is referred to by the alias bootloader and can be found as a block in the following locations:
Code:
/dev/block/mmcblk0p2
/dev/block/platform/mmci-omap-hs.1/by-name/bootloader
/dev/block/platform/mmci-omap-hs.1/by-num/p2
U-Boot will load the recovery, then check the consistancy of the recovery partition, then load and check the consistancy of the kernel.
Recovery - This partition functions similar to the boot partition, however it is specifically designed to load up the factory partition and execute a system wipe or factory recovery depending upon its boot arguments provided by U-Boot.
Recovery can be found in the following partitions:
Code:
/dev/block/mmcblk0p3
/dev/block/platform/mmci-omap-hs.1/by-name/recovery
/dev/block/platform/mmci-omap-hs.1/by-num/p3
boot - boot is the first block which is not loaded as a program. The BOOT partition consists of a compressed Ram-disk and a kernel. The Kernel and Ramdisk function together in order to bring up the Linux environment. The Kernel handles "drivers" while the Ramdisk handles files. This is an extremely complex block and would require a rather large volume of literature to explain. The Kernel completes the boot sequence by initializing the second processor and loading required drivers into memory. At this point, the device will boot in a non-linear manner where all partitions are used simultaniously.
The Kernel and Ramdisk are aliased as boot and can be found in the following locations:
Code:
/dev/block/mmcblk0p4
/dev/block/platform/mmci-omap-hs.1/by-name/boot
/dev/block/platform/mmci-omap-hs.1/by-num/p4
The kernel loads up userdata, media, cache, system, bootdata, and rom. Kernel finishes initialization up by loading the Android UI.
The ramdisk is mounted at /.
Unsecure Blocks
ROM - The ROM partition contains serial numbers, MAC addresses as well as other general configuration information and logs.
The ROM is aliased as rom and can be found in the following locations:
Code:
/dev/block/mmcblk0p5
/dev/block/platform/mmci-omap-hs.1/by-name/rom
/dev/block/platform/mmci-omap-hs.1/by-num/p5
this block is mounted at /rom.
bootdata - The bootdata partition contains the boot count and some configuration data which is unknown at this point. bootdata can be found in the following locations:
Code:
/dev/block/mmcblk0p6
/dev/block/platform/mmci-omap-hs.1/by-name/bootdata
/dev/block/platform/mmci-omap-hs.1/by-num/p6
this block is mounted at /bootdata
factory - The factory partition contains restoration scripts used by the recovery partition. The factory partition is not mounted automatically unless the device is in factory restore modes. The factory partition can be found in the following locations:
Code:
/dev/block/mmcblk0p7
/dev/block/platform/mmci-omap-hs.1/by-name/factory
/dev/block/platform/mmci-omap-hs.1/by-num/p7
system - The system partition contains the Android layer which rides on top of the kernel. The system partition can be found in the following locations:
Code:
/dev/block/mmcblk0p8
/dev/block/platform/mmci-omap-hs.1/by-name/system
/dev/block/platform/mmci-omap-hs.1/by-num/p8
The system partition is mounted at /system/
cache - The cache partition is used by Android to provide quick access to optimized loading data. It effectively makes apps work faster by trading filesize for processor use. It would appear that this partition is unused on the Nook Tablet but rather cache is stored in /data/cache. Cache can be found in the following locations:
Code:
/dev/block/mmcblk0p9
/dev/block/platform/mmci-omap-hs.1/by-name/cache
/dev/block/platform/mmci-omap-hs.1/by-num/p9
The cache partition is mounted at /cache/
media - This partition is a general purpose user storage area. It is known as the SDCard on most android devices. Media can be found in the following locations:
Code:
/dev/block/mmcblk0p10
/dev/block/platform/mmci-omap-hs.1/by-name/media
/dev/block/platform/mmci-omap-hs.1/by-num/p10
The Media partition is mounted at /mnt/media
userdata - This partition is used for application storage. Each new application is stored in /data/app and each application can create its own folder on this partition for use during operation. This partition is aliased as "data" and can be found in the following locations:
Code:
/dev/block/mmcblk0p11
/dev/block/platform/mmci-omap-hs.1/by-name/userdata
/dev/block/platform/mmci-omap-hs.1/by-num/p11
The Media partition is mounted at /data
Part II - Booting from SDCard
When booting from SDCard the basic structures are changed. In order to create a bootable SDCard, the basic outline is as follows.
Create an SDCard with 2 partitions
The first partition should be FAT32 and marked with the BOOT and LBA flags,
the Second partition should be EXT2, EXT3 or EXT4.
The first partition contains binary images of the X-Loader, U-Boot and Boot.bin
The X-Loader is named MLO
The U-Boot is named uboot.bin
The Boot.bin is named flashing_boot.bin
U-Boot will automically mount the ramdisk on the root of the second partition.
The nook tablet was not designed to operate past flashing_boot.bin as the Boot.bin is responsible for mounting all other partitions. Without a bootloader unlocking exploit to load a custom kernel and ramdisk, the device will boot normally from this point.
In order to change the structure , the initialization scripts must be modified and a bootloader unlock must be performed. An example of this can be found here in the first bootable SDCard: http://forum.xda-developers.com/showthread.php?t=1441930
Part III - Bootloader Unlocking Exploits
This section covers bootloader unlocks
Bauwks Bootloader unlock
Original post found here: http://forum.xda-developers.com/showpost.php?p=21151522&postcount=274
Hello all,
I was poking around the nook source code and saw something interesting in u-boot. When it loads a kernel/ramdisk pair into RAM, it doesn't verify the load addresses in the header. That means that I can load 2 independent payloads into anywhere I want in RAM.
What I have done is this:
* Created an SD card that the NT can boot from (contains MLO and signed u-boot.bin)
* Compiled a new u-boot without security checks and a default bootcmd to load "boot.img" off the sd card - this is my "kernel"
* created another payload which is designed to overwrite the stack so my new u-boot is called - this is my "ramdisk"
* packaged my "kernel" and "ramdisk" into an Android image and named it "flashing_boot.img" on my SD card
* boot my nook & see my (unsigned) u-boot take over the universe
(Note: my NT only tries to boot off of the SD card when it's USB is plugged in. is that expected?)
Try out a sample run with this flashing_boot.img. You should be able to unpack the original boot.img, change stuff, repack it, and boot it. I haven't tried that far myself though.
http://dl.dropbox.com/u/40331061/flashing_boot.img
I have other goodies too but the forum won't let me post links. boooooo.
Click to expand...
Click to collapse
function: This flashing_boot.bin will load an unsecure U-Boot bootloader into ram which passes security checks and is executed by the Secure U-Boot. The Unsecure U-Boot will then look for a "boot.img" on the sdcard and execute it without security checks. Thereby eliminating security and "unlocking" the bootloader.
UART NOP Based Security Bypass
See here for the original thread: http://forum.xda-developers.com/showthread.php?t=1425044
See here for setting up UART http://forum.xda-developers.com/showthread.php?t=1423009
U-Boot prompt method
This method expects that you are using a stock MLO and a stock U-Boot on an SDCard. At the U-Boot prompt type the following to load a unsecure kernel named "new.flashing_boot.img" without security:
Code:
mmcinit 0; fatload mmc 0:1 0x81000000 new.flashing_boot.img;
mw.l 80e84794 e1a00000; mw.l 80e847fc e1a00000; mw.l 80e84808 e1a00000; mw.l 80e847a0 e1a00000;booti 0x81000000;
Automated "UnBrickable ModCHIP"
This method can be automated using an ATTiny4313. The ATTiny4313 costs $3 so this is an inexpensive hardware-based bootloader unlock. The following code can be compiled using Arduino IDE with ArduinoTiny Libraries set for ATTiny4313 microcontroller.
Code:
/*
Barnes and Nobel Nook Tablet UnBrickable Modchip
Copyright 2011 Adam Outler - hkvc
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-Adam Outler adamoutler, gmail.com
*/
boolean Position[3]={true,true,true};//Place holders for operation
int inByte; //current byte
String Message=""; //current string of bytes
//begin sketch
void setup() {
Serial.begin(115200); //Initialize UART and set baud for serial
Serial.println("I are your god now");
}
void loop() {
if (Serial.available()) {
inByte = Serial.read();
if ( inByte == 10 ){
Message="";
}
else {
Message=Message +(char)inByte; //dump char into string
if (Message == "OMAP44XX SDP # "){
if ( Position[1]){
Serial.println("O hai Nook Im in ur memory");
Serial.println("mmcinit 0; fatload mmc 0:1 0x81000000 new.flashing_boot.img;");
Serial.println("Mai kernel is ur kernel");
Position[1]=(!Position[1]);
return;
} else if ( Position[2]){
Serial.println("Ur Security is my target");
Serial.println("mw.l 80e84794 e1a00000; mw.l 80e847fc e1a00000; mw.l 80e84808 e1a00000; mw.l 80e847a0 e1a00000;");
Serial.println("Ur Security is neutralized");
Position[2]=(!Position[2]);
return;
}
else if ( Position[3]){
Serial.println("boot mai kernel now");
Serial.print("booti 0x81000000");
Serial.println("k thx bai");
Position[3]=(!Position[3]);
lockup;
}
}
}
}
if (millis()>=60000){
lockup;
}
}
void lockup(){
while(true){
delay(50000);//program cannot end, only sleep
}
}
The ATTiny4313 is connected to the device in the following way:
Pin2>Uart TX
Pin3>UART RX
Pin10> Ground
Pin20>1.8v.
function: This hardware exploit sends commands into memory which null the security checks and allow the device to boot a file called "new.flashing_boot.img" without any security checks.
Conclusion
Using this information and other resources on Linux/Android hacking, you should have all the tools required to make your own custom Android ROM. It is my goal to help enable development on this device. We now have total control over the Nook Tablet.
Please let me know if there's anything I should add.D
Part IV - Hardware Specifications
This section covers hardware specs. I obtained some information about the hardware using Voodoo Report. This is useful for porting other flavors of Linux and configuring hardware.
Build.prop
Code:
# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=GINGERBREAD
ro.build.display.id=1.4.0.1029.acclaim1_4.acclaim.rrdf.s1
ro.build.version.incremental=1.4.0
ro.build.version.sdk=10
ro.build.version.codename=REL
ro.build.version.release=2.3.4
ro.build.date=Fri Nov 11 12:38:11 PST 2011
ro.build.date.utc=1321043891
ro.build.type=user
ro.build.user=build
ro.build.host=dhabuildimage17
ro.build.tags=test-keys
ro.product.model=BNTV250
ro.product.brand=nook
ro.product.name=blaze
ro.product.overall.name=NOOKTablet
ro.product.device=blaze
ro.product.bn.devicefamily=acclaim
ro.product.board=omap4sdp
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=Barnes&Noble
ro.product.locale.language=en
ro.product.locale.region=US
ro.wifi.channels=
ro.board.platform=omap4
# ro.build.product is obsolete; use ro.product.device
ro.build.product=blaze
ro.build.sourceversion=full
ro.build.description=1.4.0.1029.acclaim1_4.acclaim.rldp.s51317
ro.build.updatetype=Full
ro.build.fingerprint=acclaim/blaze/blaze:2.3.4/GINGERBREAD/1.4.0:user/test-keys
persist.bn.kpi.enabled=0
# end build properties
# system.prop for ldp
# This overrides settings in the products/generic/system.prop file
#
# rild.libpath=/system/lib/libreference-ril.so
# rild.libargs=-d /dev/ttyS0
com.ti.omap_enhancement=true
opencore.asmd=1
keyguard.no_require_sim=1
wifi.interface=tiwlan0
dalvik.vm.heapsize=128m
#dalvik.vm.heapsize=64m
ro.sf.widthpixels=600
ro.sf.heightpixels=1024
ro.sf.lcd_density.xdpi=169.33333
ro.sf.lcd_density.ydpi=169.33333
ro.sf.hwrotation=270
ro.opengles.version=131072
# Define modem related settings
ro.radio.use-ppp no
ro.config.nocheckin yes
#define defaults for audio D/A mic and power mode
omap.audio.mic.main=AMic0
omap.audio.mic.sub=AMic1
omap.audio.power=PingPong
af.resampler.quality=3
ro.nf.profile=2
ro.nf.level=512
#
# ADDITIONAL_BUILD_PROPERTIES
#
keyguard.no_require_sim=true
ro.com.android.dateformat=MM-dd-yyyy
ro.com.android.dataroaming=true
ro.ril.hsxpa=1
ro.ril.gprsclass=10
ro.config.notification_sound=OnTheHunt.ogg
ro.config.alarm_alert=Alarm_Classic.ogg
net.bt.name=Android
dalvik.vm.stack-trace-file=/data/anr/traces.txt
Device listings
Code:
/dev:
crw------- root root 7, 135 2012-01-17 08:37 vcsa7
crw------- root root 7, 7 2012-01-17 08:37 vcs7
crw-rw-rw- system system 10, 0 2012-01-17 08:37 fwram
drwxr-xr-x system system 2012-01-17 08:37 cpuctl
crw------- root root 81, 4 2012-01-17 08:37 video4
crwxrwxrwx system camera 81, 3 2012-01-17 08:37 video0
cr--r----- media media 241, 2 2012-01-17 08:37 omap-devh2
cr--r----- media media 241, 1 2012-01-17 08:37 omap-devh1
cr--r----- media media 241, 0 2012-01-17 08:37 omap-devh0
crw-rw---- media media 242, 0 2012-01-17 08:37 syslink-proc4430
crw-rw---- media media 243, 0 2012-01-17 08:37 syslink-procmgr
crw-rw---- media media 244, 0 2012-01-17 08:37 syslink_ipc
crw-rw---- media media 245, 0 2012-01-17 08:37 tiler
crw-rw---- root root 246, 0 2012-01-17 08:37 dmm
crw-rw-rw- system system 248, 0 2012-01-17 08:37 pvrsrvkm
crw------- root root 122, 1 2012-01-17 08:37 tf_ctrl
crw-rw-rw- root root 122, 0 2012-01-17 08:37 tf_driver
cr--r----- media media 250, 2 2012-01-17 08:37 omap-rproc2
cr--r----- media media 250, 1 2012-01-17 08:37 omap-rproc1
cr--r----- media media 250, 0 2012-01-17 08:37 omap-rproc0
cr--r----- media media 251, 1 2012-01-17 08:37 iovmm-omap1
cr--r----- media media 251, 0 2012-01-17 08:37 iovmm-omap0
crw------- root root 252, 0 2012-01-17 08:37 ipu0
crw------- root root 7, 129 2012-01-17 08:37 vcsa1
crw------- root root 7, 1 2012-01-17 08:37 vcs1
crw------- root root 7, 128 2012-01-17 08:37 vcsa
crw------- root root 7, 0 2012-01-17 08:37 vcs
crw-rw-rw- root root 5, 2 2012-01-17 08:37 ptmx
crw------- root root 4, 63 2012-01-17 08:37 tty63
crw------- root root 4, 62 2012-01-17 08:37 tty62
crw------- root root 4, 61 2012-01-17 08:37 tty61
crw------- root root 4, 60 2012-01-17 08:37 tty60
crw------- root root 4, 59 2012-01-17 08:37 tty59
crw------- root root 4, 58 2012-01-17 08:37 tty58
crw------- root root 4, 57 2012-01-17 08:37 tty57
crw------- root root 4, 56 2012-01-17 08:37 tty56
crw------- root root 4, 55 2012-01-17 08:37 tty55
crw------- root root 4, 54 2012-01-17 08:37 tty54
crw------- root root 4, 53 2012-01-17 08:37 tty53
crw------- root root 4, 52 2012-01-17 08:37 tty52
crw------- root root 4, 51 2012-01-17 08:37 tty51
crw------- root root 4, 50 2012-01-17 08:37 tty50
crw------- root root 4, 49 2012-01-17 08:37 tty49
crw------- root root 4, 48 2012-01-17 08:37 tty48
crw------- root root 4, 47 2012-01-17 08:37 tty47
crw------- root root 4, 46 2012-01-17 08:37 tty46
crw------- root root 4, 45 2012-01-17 08:37 tty45
crw------- root root 4, 44 2012-01-17 08:37 tty44
crw------- root root 4, 43 2012-01-17 08:37 tty43
crw------- root root 4, 42 2012-01-17 08:37 tty42
crw------- root root 4, 41 2012-01-17 08:37 tty41
crw------- root root 4, 40 2012-01-17 08:37 tty40
crw------- root root 4, 39 2012-01-17 08:37 tty39
crw------- root root 4, 38 2012-01-17 08:37 tty38
crw------- root root 4, 37 2012-01-17 08:37 tty37
crw------- root root 4, 36 2012-01-17 08:37 tty36
crw------- root root 4, 35 2012-01-17 08:37 tty35
crw------- root root 4, 34 2012-01-17 08:37 tty34
crw------- root root 4, 33 2012-01-17 08:37 tty33
crw------- root root 4, 32 2012-01-17 08:37 tty32
crw------- root root 4, 31 2012-01-17 08:37 tty31
crw------- root root 4, 30 2012-01-17 08:37 tty30
crw------- root root 4, 29 2012-01-17 08:37 tty29
crw------- root root 4, 28 2012-01-17 08:37 tty28
crw------- root root 4, 27 2012-01-17 08:37 tty27
crw------- root root 4, 26 2012-01-17 08:37 tty26
crw------- root root 4, 25 2012-01-17 08:37 tty25
crw------- root root 4, 24 2012-01-17 08:37 tty24
crw------- root root 4, 23 2012-01-17 08:37 tty23
crw------- root root 4, 22 2012-01-17 08:37 tty22
crw------- root root 4, 21 2012-01-17 08:37 tty21
crw------- root root 4, 20 2012-01-17 08:37 tty20
crw------- root root 4, 19 2012-01-17 08:37 tty19
crw------- root root 4, 18 2012-01-17 08:37 tty18
crw------- root root 4, 17 2012-01-17 08:37 tty17
crw------- root root 4, 16 2012-01-17 08:37 tty16
crw------- root root 4, 15 2012-01-17 08:37 tty15
crw------- root root 4, 14 2012-01-17 08:37 tty14
crw------- root root 4, 13 2012-01-17 08:37 tty13
crw------- root root 4, 12 2012-01-17 08:37 tty12
crw------- root root 4, 11 2012-01-17 08:37 tty11
crw------- root root 4, 10 2012-01-17 08:37 tty10
crw------- root root 4, 9 2012-01-17 08:37 tty9
crw------- root root 4, 8 2012-01-17 08:37 tty8
crw------- root root 4, 7 2012-01-17 08:37 tty7
crw------- root root 4, 6 2012-01-17 08:37 tty6
crw------- root root 4, 5 2012-01-17 08:37 tty5
crw------- root root 4, 4 2012-01-17 08:37 tty4
crw------- root root 4, 3 2012-01-17 08:37 tty3
crw------- root root 4, 2 2012-01-17 08:37 tty2
crw------- root root 4, 1 2012-01-17 08:37 tty1
crw-rw---- root system 4, 0 2012-01-17 08:37 tty0
crw------- root root 5, 1 2012-01-17 08:37 console
crw-rw-rw- root root 5, 0 2012-01-17 08:37 tty
crw------- root root 1, 11 2012-01-17 08:37 kmsg
crw-rw-rw- root root 1, 9 2012-01-17 08:37 urandom
crw-rw-rw- root root 1, 8 2012-01-17 08:37 random
crw-rw-rw- root root 1, 7 2012-01-17 08:37 full
crw-rw-rw- root root 1, 5 2012-01-17 08:37 zero
crw-rw-rw- root root 1, 3 2012-01-17 08:37 null
crw------- root root 1, 2 2012-01-17 08:37 kmem
crw------- root root 1, 1 2012-01-17 08:37 mem
crw------- root root 10, 49 2012-01-17 08:37 network_throughput
crw------- root root 10, 50 2012-01-17 08:37 network_latency
crw------- root root 10, 51 2012-01-17 08:37 cpu_dma_latency
drwxr-xr-x root root 2012-01-17 08:37 log
crw-rw-rw- root root 10, 56 2012-01-17 08:37 binder
crw-rw-r-- system radio 10, 57 2012-01-17 08:37 alarm
crw-rw---- system bluetooth 10, 223 2012-01-17 08:37 uinput
crw------- root root 10, 58 2012-01-17 08:37 keychord
crw-rw---- adb adb 10, 59 2012-01-17 08:37 android_adb_enable
crw-rw---- adb adb 10, 60 2012-01-17 08:37 android_adb
crw------- root root 10, 61 2012-01-17 08:37 twl6030-gpadc
crw-rw-rw- root root 10, 62 2012-01-17 08:37 ashmem
crw------- root root 10, 63 2012-01-17 08:37 rfkill
crw------- root root 254, 0 2012-01-17 08:37 timer32k
drwxr-xr-x root root 2012-01-17 08:37 snd
crw------- root root 4, 67 2012-01-17 08:37 ttyS3
crw------- root root 4, 66 2012-01-17 08:37 ttyS2
crw------- root root 4, 65 2012-01-17 08:37 ttyS1
crw-rw---- radio radio 4, 64 2012-01-17 08:37 ttyS0
drwxr-xr-x root root 2012-01-17 08:37 graphics
crw------- root root 10, 130 2012-01-17 08:37 watchdog
crw------- system system 81, 2 2012-01-17 08:37 video3
crw-rw---- system system 81, 1 2012-01-17 08:37 video2
crw-rw---- system system 81, 0 2012-01-17 08:37 video1
drwxr-xr-x root root 2012-01-17 08:37 block
crw------- root root 247, 3 2012-01-17 08:37 ttyO3
crw------- root root 247, 2 2012-01-17 08:37 ttyO2
crw------- root root 247, 1 2012-01-17 08:37 ttyO1
crw------- root root 247, 0 2012-01-17 08:37 ttyO0
crw------- root root 89, 4 2012-01-17 08:37 i2c-4
crw------- root root 89, 3 2012-01-17 08:37 i2c-3
crw------- root root 89, 2 2012-01-17 08:37 i2c-2
drwxr-xr-x root root 2012-01-17 08:37 input
crw------- root root 89, 1 2012-01-17 08:37 i2c-1
crw------- root root 253, 0 2012-01-17 08:37 rtc0
drwxr-xr-x root root 2012-01-17 08:37 socket
drwxr-xr-x root root 1969-12-31 18:00 pts
/dev/cpuctl:
drwxr-xr-x root root 2012-01-17 08:37 bg_non_interactive
drwxr-xr-x root root 2012-01-17 08:37 fg_boost
-rw--w--w- root root 4 2012-01-17 08:37 cpu.shares
/dev/cpuctl/bg_non_interactive:
-rw--w--w- root root 2 2012-01-17 08:37 cpu.shares
/dev/cpuctl/fg_boost:
-rw--w--w- root root 4 2012-01-17 08:37 cpu.shares
/dev/log:
crw-rw--w- root log 10, 52 2012-01-17 08:37 system
crw-rw--w- root log 10, 53 2012-01-17 08:37 radio
crw-rw--w- root log 10, 54 2012-01-17 08:37 events
crw-rw--w- root log 10, 55 2012-01-17 08:37 main
/dev/snd:
crwxrwxrwx system audio 116, 2 2012-01-17 08:37 timer
crwxrwxrwx system audio 116, 8 2012-01-17 08:37 controlC0
crwxrwxrwx system audio 116, 7 2012-01-17 08:37 pcmC0D0p
crw-rw---- system audio 116, 6 2012-01-17 08:37 pcmC0D1c
crw-rw---- system audio 116, 5 2012-01-17 08:37 pcmC0D1p
crw-rw---- system audio 116, 4 2012-01-17 08:37 pcmC0D2c
crw-rw---- system audio 116, 3 2012-01-17 08:37 pcmC0D2p
/dev/graphics:
crw-rw---- root graphics 29, 0 2012-01-17 08:37 fb0
/dev/block:
drwxr-xr-x root root 2012-01-17 08:37 vold
brw------- root root 7, 7 2012-01-17 08:37 loop7
brw------- root root 7, 6 2012-01-17 08:37 loop6
brw------- root root 7, 5 2012-01-17 08:37 loop5
brw------- root root 7, 4 2012-01-17 08:37 loop4
brw------- root root 7, 3 2012-01-17 08:37 loop3
brw------- root root 7, 2 2012-01-17 08:37 loop2
brw------- root root 7, 1 2012-01-17 08:37 loop1
brw------- root root 7, 0 2012-01-17 08:37 loop0
brw------- root root 1, 15 2012-01-17 08:37 ram15
brw------- root root 1, 14 2012-01-17 08:37 ram14
brw------- root root 1, 13 2012-01-17 08:37 ram13
brw------- root root 1, 12 2012-01-17 08:37 ram12
brw------- root root 1, 11 2012-01-17 08:37 ram11
brw------- root root 1, 10 2012-01-17 08:37 ram10
brw------- root root 1, 9 2012-01-17 08:37 ram9
brw------- root root 1, 8 2012-01-17 08:37 ram8
brw------- root root 1, 7 2012-01-17 08:37 ram7
brw------- root root 1, 6 2012-01-17 08:37 ram6
brw------- root root 1, 5 2012-01-17 08:37 ram5
brw------- root root 1, 4 2012-01-17 08:37 ram4
brw------- root root 1, 3 2012-01-17 08:37 ram3
brw------- root root 1, 2 2012-01-17 08:37 ram2
brw------- root root 1, 1 2012-01-17 08:37 ram1
brw------- root root 1, 0 2012-01-17 08:37 ram0
brw------- root root 179, 11 2012-01-17 08:37 mmcblk0p11
brw------- root root 179, 10 2012-01-17 08:37 mmcblk0p10
brw------- root root 179, 9 2012-01-17 08:37 mmcblk0p9
brw------- root root 179, 8 2012-01-17 08:37 mmcblk0p8
brw------- root root 179, 7 2012-01-17 08:37 mmcblk0p7
brw------- root root 179, 6 2012-01-17 08:37 mmcblk0p6
brw------- root root 179, 5 2012-01-17 08:37 mmcblk0p5
brw-rw---- root system 179, 4 2012-01-17 08:37 mmcblk0p4
brw------- root root 179, 3 2012-01-17 08:37 mmcblk0p3
brw------- root root 179, 2 2012-01-17 08:37 mmcblk0p2
brw------- root root 179, 1 2012-01-17 08:37 mmcblk0p1
drwxr-xr-x root root 2012-01-17 08:37 platform
brw------- root root 179, 0 2012-01-17 08:37 mmcblk0
/dev/block/vold:
brw-rw---- root root 179, 11 2012-01-17 08:37 179:11
brw-rw---- root root 179, 10 2012-01-17 08:37 179:10
brw-rw---- root root 179, 9 2012-01-17 08:37 179:9
brw-rw---- root root 179, 8 2012-01-17 08:37 179:8
brw-rw---- root root 179, 7 2012-01-17 08:37 179:7
brw-rw---- root root 179, 6 2012-01-17 08:37 179:6
brw-rw---- root root 179, 5 2012-01-17 08:37 179:5
brw-rw---- root root 179, 4 2012-01-17 08:37 179:4
brw-rw---- root root 179, 3 2012-01-17 08:37 179:3
brw-rw---- root root 179, 2 2012-01-17 08:37 179:2
brw-rw---- root root 179, 1 2012-01-17 08:37 179:1
brw-rw---- root root 179, 0 2012-01-17 08:37 179:0
/dev/block/platform:
drwxr-xr-x root root 2012-01-17 08:37 mmci-omap-hs.1
/dev/block/platform/mmci-omap-hs.1:
lrwxrwxrwx root root 2012-01-17 08:37 mmcblk0p11 -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 2012-01-17 08:37 mmcblk0p10 -> /dev/block/mmcblk0p10
lrwxrwxrwx root root 2012-01-17 08:37 mmcblk0p9 -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 2012-01-17 08:37 mmcblk0p8 -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 2012-01-17 08:37 mmcblk0p7 -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 2012-01-17 08:37 mmcblk0p6 -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 2012-01-17 08:37 mmcblk0p5 -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 2012-01-17 08:37 mmcblk0p4 -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 2012-01-17 08:37 mmcblk0p3 -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 2012-01-17 08:37 mmcblk0p2 -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 2012-01-17 08:37 mmcblk0p1 -> /dev/block/mmcblk0p1
drwxr-xr-x root root 2012-01-17 08:37 by-num
drwxr-xr-x root root 2012-01-17 08:37 by-name
lrwxrwxrwx root root 2012-01-17 08:37 mmcblk0 -> /dev/block/mmcblk0
/dev/block/platform/mmci-omap-hs.1/by-num:
lrwxrwxrwx root root 2012-01-17 08:37 p11 -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 2012-01-17 08:37 p10 -> /dev/block/mmcblk0p10
lrwxrwxrwx root root 2012-01-17 08:37 p9 -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 2012-01-17 08:37 p8 -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 2012-01-17 08:37 p7 -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 2012-01-17 08:37 p6 -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 2012-01-17 08:37 p5 -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 2012-01-17 08:37 p4 -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 2012-01-17 08:37 p3 -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 2012-01-17 08:37 p2 -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 2012-01-17 08:37 p1 -> /dev/block/mmcblk0p1
/dev/block/platform/mmci-omap-hs.1/by-name:
lrwxrwxrwx root root 2012-01-17 08:37 userdata -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 2012-01-17 08:37 media -> /dev/block/mmcblk0p10
lrwxrwxrwx root root 2012-01-17 08:37 cache -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 2012-01-17 08:37 system -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 2012-01-17 08:37 factory -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 2012-01-17 08:37 bootdata -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 2012-01-17 08:37 rom -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 2012-01-17 08:37 boot -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 2012-01-17 08:37 recovery -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 2012-01-17 08:37 bootloader -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 2012-01-17 08:37 xloader -> /dev/block/mmcblk0p1
/dev/input:
crw-rw---- root input 13, 67 2012-01-17 08:37 event3
crw-rw---- root input 13, 68 2012-01-17 08:37 event4
crw-rw---- root input 13, 65 2012-01-17 08:37 event1
crw-rw---- root input 13, 64 2012-01-17 08:37 event0
crw-rw---- root input 13, 66 2012-01-17 08:37 event2
/dev/socket:
srw-rw---- wifi wifi 2012-01-17 08:37 wpa_tiwlan0
srw-rw-rw- root root 2012-01-17 08:37 keystore
srw------- system system 2012-01-17 08:37 installd
srw-rw---- bluetooth bluetooth 2012-01-17 08:37 dbus
srw-rw-rw- root root 2012-01-17 08:37 zygote
srw-rw---- root radio 2012-01-17 08:37 rild
srw-rw---- radio system 2012-01-17 08:37 rild-debug
srw-rw---- root mount 2012-01-17 08:37 vold
srw-rw---- root system 2012-01-17 08:37 netd
srw-rw-rw- root root 2012-01-17 08:37 property_service
/dev/pts:
Sensors
Code:
Accelerometer:
vendor: kxtf9
name: kxtf9_accel
Light:
vendor: ROHM
name: BH1780gli Light sensor
Proximity:
vendor: OSRAM Opto Semiconductors
name: SFH7741 Proximity sensor
Pressure:
vendor: Bosch
name: BMP085 Pressure sensor
Temperature:
vendor: Bosch
name: BMP085 Temperature sensor
Magnetic field:
vendor: HoneyWell
name: HMC5843 3-Axis Magnetometer
Gravity:
vendor: Google Inc.
name: Gravity Sensor
Linear acceleration:
vendor: Google Inc.
name: Linear Acceleration Sensor
Rotation vector:
vendor: Google Inc.
name: Rotation Vector Sensor
GPIOs
Code:
GPIOs 0-31, gpio:
gpio-0 (mmc_cd ) in lo
gpio-4 (mmc_wp ) in hi
gpio-6 (h_SYS_DRM_MSEC ) out hi
gpio-29 (POWER ) in lo irq-189 edge-both
GPIOs 32-63, gpio:
gpio-32 (HOME ) in hi irq-192 edge-both
gpio-36 (vdd_lcdtp ) out hi
gpio-37 (ft5x06_touch ) in hi irq-197 edge-falling
gpio-38 (BOXER BL PWR EN ) out hi
gpio-39 (ft5x06_reset ) out hi
gpio-44 (BOXER CABC0 ) out lo
gpio-45 (BOXER CABC1 ) out lo
gpio-60 (max8903_gpio_chg_en ) out hi
gpio-62 (max8903_gpio_chg_flt) in hi irq-222 edge-both
gpio-63 (max8903_gpio_chg_usu) out hi
GPIOs 64-95, gpio:
gpio-65 (max17042_irq ) in hi irq-225 edge-falling
gpio-66 (kxtf9_irq ) in hi irq-226 edge-falling
gpio-81 (max8903_gpio_chg_dok) in hi
gpio-82 (max8903_gpio_chg_uok) in hi
gpio-83 (max8903_gpio_chg_ius) out hi
GPIOs 96-127, gpio:
gpio-101 (audio_codec_pwron ) out hi
gpio-102 (hsdet-gpio ) in hi irq-262 edge-both
gpio-103 (Codec Interrupt ) in hi
gpio-104 (audio_codec_reset ) out hi
gpio-114 (wifi_pwen ) out hi
gpio-115 (wifi_irq ) in hi irq-275 ?trigger?
gpio-118 (wifi_pmena ) out hi
GPIOs 128-159, gpio:
GPIOs 160-191, gpio:
gpio-173 (max8903_gpio_chg_ilm) out lo
Kernel details (including loaded kernel modules. twilan_drv required for wifi)
Code:
Linux version 2.6.35.7 ([email protected]) (gcc version 4.4.1 (Sourcery G++ Lite 2010q1-202) ) #1 SMP PREEMPT Fri Nov 11 12:35:42 PST 2011
tiwlan_drv 973884 0 - Live 0xbf006000
fwram 916 0 - Live 0xbf000000
Display information
Code:
Width: 600
Height: 1024
Refresh rate: 68.0
Pixel Format: 5
Stock disks
Code:
Filesystem Size Used Free Blksize
/dev 456M 44K 456M 4096
/mnt/asec 456M 0K 456M 4096
/mnt/obb 456M 0K 456M 4096
/system 602M 401M 200M 4096
/data 11G 306M 11G 4096
/cache 419M 7M 412M 4096
/bootdata 47M 7K 47M 512
/rom 47M 15K 47M 512
/mnt/media 1021M 5M 1016M 4096
/sys/ names
Code:
==> ./devices/platform/i2c_omap.1/i2c-1/name <==
OMAP I2C adapter
==> ./devices/platform/i2c_omap.1/i2c-1/1-0048/name <==
twl6030
==> ./devices/platform/i2c_omap.1/i2c-1/1-0048/twl_rtc/rtc/rtc0/name <==
twl_rtc
==> ./devices/platform/i2c_omap.1/i2c-1/1-0048/twl_reg.46/regulator/regulator.1/name <==
VUSB
==> ./devices/platform/i2c_omap.1/i2c-1/1-0048/twl_reg.40/regulator/regulator.2/name <==
VMMC
==> ./devices/platform/i2c_omap.1/i2c-1/1-0048/twl_reg.41/regulator/regulator.3/name <==
VPP
==> ./devices/platform/i2c_omap.1/i2c-1/1-0048/twl_reg.43/regulator/regulator.4/name <==
VANA
==> ./devices/platform/i2c_omap.1/i2c-1/1-0048/twl_reg.44/regulator/regulator.5/name <==
VCXIO
==> ./devices/platform/i2c_omap.1/i2c-1/1-0048/twl_reg.37/regulator/regulator.6/name <==
VAUX1_6030
==> ./devices/platform/i2c_omap.1/i2c-1/1-0048/twl_reg.39/regulator/regulator.7/name <==
VAUX3_6030
==> ./devices/platform/i2c_omap.1/i2c-1/1-0048/twl_reg.48/regulator/regulator.8/name <==
CLK32KG
==> ./devices/platform/i2c_omap.1/i2c-1/1-0049/name <==
dummy
==> ./devices/platform/i2c_omap.1/i2c-1/1-004a/name <==
dummy
==> ./devices/platform/i2c_omap.1/i2c-1/1-004b/name <==
dummy
==> ./devices/platform/i2c_omap.1/i2c-1/1-000f/name <==
kxtf9
==> ./devices/platform/i2c_omap.1/i2c-1/1-0036/name <==
max17042
==> ./devices/platform/i2c_omap.1/i2c-1/i2c-dev/i2c-1/name <==
OMAP I2C adapter
==> ./devices/platform/i2c_omap.2/i2c-2/name <==
OMAP I2C adapter
==> ./devices/platform/i2c_omap.2/i2c-2/2-0022/name <==
cyttsp-i2c
==> ./devices/platform/i2c_omap.2/i2c-2/2-0038/name <==
ft5x06-i2c
==> ./devices/platform/i2c_omap.2/i2c-2/2-0038/input/input2/name <==
ft5x06-i2c
==> ./devices/platform/i2c_omap.2/i2c-2/2-0018/name <==
tlv320aic3100
==> ./devices/platform/i2c_omap.2/i2c-2/i2c-dev/i2c-2/name <==
OMAP I2C adapter
==> ./devices/platform/i2c_omap.3/i2c-3/name <==
OMAP I2C adapter
==> ./devices/platform/i2c_omap.3/i2c-3/i2c-dev/i2c-3/name <==
OMAP I2C adapter
==> ./devices/platform/i2c_omap.4/i2c-4/name <==
OMAP I2C adapter
==> ./devices/platform/i2c_omap.4/i2c-4/i2c-dev/i2c-4/name <==
OMAP I2C adapter
==> ./devices/platform/gpio-keys/input/input0/name <==
gpio-keys
==> ./devices/platform/reg-fixed-voltage/regulator/regulator.0/name <==
vdd_lcdtp
==> ./devices/platform/mmci-omap-hs.1/mmc_host/mmc0/mmc0:0001/name <==
016G4A
==> ./devices/platform/omap-keypad/input/input1/name <==
omap-keypad
==> ./devices/platform/omapdss/manager0/name <==
lcd
==> ./devices/platform/omapdss/manager1/name <==
tv
==> ./devices/platform/omapdss/manager2/name <==
2lcd
==> ./devices/platform/omapdss/overlay0/name <==
gfx
==> ./devices/platform/omapdss/overlay1/name <==
vid1
==> ./devices/platform/omapdss/overlay2/name <==
vid2
==> ./devices/platform/omapdss/overlay3/name <==
vid3
==> ./devices/platform/omap_vout/video4linux/video1/name <==
omap_vout
==> ./devices/platform/omap_vout/video4linux/video2/name <==
omap_vout
==> ./devices/platform/omap_vout/video4linux/video3/name <==
omap_vout
==> ./devices/platform/omapfb/graphics/fb0/name <==
omapfb
==> ./devices/platform/soc-audio/sound/card0/input4/name <==
OMAP4_ACCLAIM_ABE Headset Jack
==> ./devices/system/cpu/cpu0/cpuidle/state0/name <==
C1
==> ./devices/system/cpu/cpu0/cpuidle/state1/name <==
C2
==> ./devices/system/cpu/cpu0/cpuidle/state2/name <==
C3
==> ./devices/system/cpu/cpu0/cpuidle/state3/name <==
C4
==> ./devices/system/cpu/cpu1/cpuidle/state0/name <==
C1
==> ./devices/system/cpu/cpu1/cpuidle/state1/name <==
C2
==> ./devices/system/cpu/cpu1/cpuidle/state2/name <==
C3
==> ./devices/system/cpu/cpu1/cpuidle/state3/name <==
C4
==> ./devices/omapdss/display0/name <==
boxerLCD
==> ./devices/virtual/vtconsole/vtcon0/name <==
(S) dummy device
==> ./devices/virtual/switch/usb_connected/name <==
usb_connected
==> ./devices/virtual/switch/usb_configuration/name <==
usb_configuration
==> ./devices/virtual/switch/usb_mass_storage/name <==
usb_mass_storage
==> ./devices/virtual/input/input3/name <==
kxtf9_accel
==> ./devices/virtual/video4linux/video0/name <==
s3d_overlay
==> ./devices/virtual/video4linux/video4/name <==
omap_wb
==> ./bus/omapdss/drivers/hdmi_panel/name <==
hdmi_panel
==> ./bus/omapdss/drivers/boxer_panel_drv/name <==
boxer_panel_drv
Part V - Compiling and Packaging a custom kernel
It was my intention to perform a writeup on how to compile a custom kernel, however, LogLud has done an excellent writeup here since I made this post.
See here: http://www.nooktabletdev.org/index.php/Making_a_Boot_Image
Compiling an alternate bootloader
In order to pass custom parameters into the kernel you will need a new bootloader. I'm assuming you are using Ubuntu.
Obtain a toolchain
You will need a toolchain. I recommend codesourcery. http://www.mentor.com/embedded-soft...codebench/editions/lite-edition/arm-gnu-linux
To build bauwks Second-UBoot from source
Code:
apt-get install git
git clone git://github.com/bauwks/Nook-Tablet.git
cd ./Nook-Tablet/distro/u-boot
git checkout second-uboot
PATH=/home/adam/CodeSourcery/Sourcery_G++_Lite/bin:$PATH #Change this to the path of your toolchain.
At this point, you can make your changes to the configuration and boot parameters. After you are complete, you can build it with the following.
Code:
make nt2ndboot_sd_config
./tools/build_nt_2ndboot_img.py -o test.img u-boot.bin
mkdir ~/Desktop/CustomBootImage
cp u-boot.bin ~/Desktop/CustomBootImage/flashing_boot.img
Your new u-boot.bin will be called "flashing_boot.img" and it will be located on your desktop in a folder called "CustomBootImage".
Thanks for the info man. Looking forward to seeing how this pans out.
Sent from my HTC Glacier using xda premium
AdamOutler said:
GPIOs
Code:
GPIOs 0-31, gpio:
gpio-0 (mmc_cd ) in lo
gpio-4 (mmc_wp ) in hi
gpio-6 (h_SYS_DRM_MSEC ) out hi
gpio-29 (POWER ) in lo irq-189 edge-both
GPIOs 32-63, gpio:
gpio-32 (HOME ) in hi irq-192 edge-both
gpio-36 (vdd_lcdtp ) out hi
gpio-37 (ft5x06_touch ) in hi irq-197 edge-falling
gpio-38 (BOXER BL PWR EN ) out hi
gpio-39 (ft5x06_reset ) out hi
gpio-44 (BOXER CABC0 ) out lo
gpio-45 (BOXER CABC1 ) out lo
gpio-60 (max8903_gpio_chg_en ) out hi
gpio-62 (max8903_gpio_chg_flt) in hi irq-222 edge-both
gpio-63 (max8903_gpio_chg_usu) out hi
GPIOs 64-95, gpio:
gpio-65 (max17042_irq ) in hi irq-225 edge-falling
gpio-66 (kxtf9_irq ) in hi irq-226 edge-falling
gpio-81 (max8903_gpio_chg_dok) in hi
gpio-82 (max8903_gpio_chg_uok) in hi
gpio-83 (max8903_gpio_chg_ius) out hi
GPIOs 96-127, gpio:
gpio-101 (audio_codec_pwron ) out hi
gpio-102 (hsdet-gpio ) in hi irq-262 edge-both
gpio-103 (Codec Interrupt ) in hi
gpio-104 (audio_codec_reset ) out hi
gpio-114 (wifi_pwen ) out hi
gpio-115 (wifi_irq ) in hi irq-275 ?trigger?
gpio-118 (wifi_pmena ) out hi
GPIOs 128-159, gpio:
GPIOs 160-191, gpio:
gpio-173 (max8903_gpio_chg_ilm) out lo
.
Click to expand...
Click to collapse
Hmm strange that the vol up and down arnt listed. O well. Good list. I'll add it to the wiki.
Sent from my Galaxy Nexus using xda premium
Loglud said:
Hmm strange that the vol up and down arnt listed. O well. Good list. I'll add it to the wiki.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
I believe they are shared objects. I was able to get them into Ubuntu by adding the shared objects found in /etc/ folder. Volume+ and Volume- work now and didn't work before. I find this odd.
I requested that this post be merged into the other nook tablet reference thread so I formatted it properly. http://forum.xda-developers.com/showthread.php?t=1444205
AdamOutler said:
I believe they are shared objects. I was able to get them into Ubuntu by adding the shared objects found in /etc/ folder. Volume+ and Volume- work now and didn't work before. I find this odd.
I requested that this post be merged into the other nook tablet reference thread so I formatted it properly. http://forum.xda-developers.com/showthread.php?t=1444205
Click to expand...
Click to collapse
Thats still very strange, because in order for them to be polled by the CPU they must be on the watchdog timer and on the GPIO port list, however, I'm curious if they use a linked GPIO. O well. I am currently doing massive updates to the nooktabletdev.org and I will add all of this documentation to make sure if can be used.
Soooooo... quick question. Is the booting from SDCard how you're working on the ubuntu build or is it even possible to do it that way? Sorry for the questions, just trying to understand.
dodgepot said:
Soooooo... quick question. Is the booting from SDCard how you're working on the ubuntu build or is it even possible to do it that way? Sorry for the questions, just trying to understand.
Click to expand...
Click to collapse
It can be done either way. The trick was to get the device to run a no-sig-check version of u-boot, which can be done either with sdcard or internally.
Hey.. Since LogLud did this writeup http://www.nooktabletdev.org/index.php/Making_a_Boot_Image I'm going to link to that wiki page now.
If anyone can think of something else which a new developer could use, please let me know. It is my intent to make this reference guide as complete as possible.
Hi Adam, What is the drive reference to the SD card slot ?
I'm trying to setup a script to partition the SD card for using SD boot CM7 for people but I can't see what the actual drive reference is, I know internal is mmcblk0 but what's the SD ?
***EDIT***
I thought it was mmcblk1 tried it and nothing happened so I thought I was wrong, it just hadn't been mounted! Sorry to bother you.
CelticWebSolutions said:
Hi Adam, What is the drive reference to the SD card slot ?
I'm trying to setup a script to partition the SD card for using SD boot CM7 for people but I can't see what the actual drive reference is, I know internal is mmcblk0 but what's the SD ?
***EDIT***
I thought it was mmcblk1 tried it and nothing happened so I thought I was wrong, it just hadn't been mounted! Sorry to bother you.
Click to expand...
Click to collapse
There is none. It's defined in the bootloader. You have to modify the bootloader and then set the partition tables using parted.
AdamOutler said:
There is none. It's defined in the bootloader. You have to modify the bootloader and then set the partition tables using parted.
Click to expand...
Click to collapse
Mmcblk1 worked fine. I just wanted parted to read sd in standard system and setup partitions on it
CelticWebSolutions said:
Mmcblk1 worked fine. I just wanted parted to read sd in standard system and setup partitions on it
Click to expand...
Click to collapse
Oh. Sdcard. Yeah. Use parted.for some reason I was thinking about internal.
I tried to create my own edify_defs file to cook my own roms, but every time I try to flash the zip it fails because of that file it's not well. I don't know how to adapt it for my device. I tried to follow the template and other tutorials but it fails too.
Can anyone help me to create this file?
I attach some info:
recovery.fstab
Code:
# Android fstab file.
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
/dev/bootimg /bootimg emmc defaults defaults
/dev/recovery /recovery emmc defaults defaults
/dev/uboot /uboot emmc defaults defaults
/[email protected] /system ext4 ro,noatime wait
/[email protected] /cache ext4 noatime,nosuid,nodev,noauto_da_alloc wait
/[email protected] /data ext4 noatime,nosuid,nodev,noauto_da_alloc wait,encryptable=footer
/devices/platform/mtk-msdc.1/mmc_host/mmc1 auto vfat defaults voldmanaged=sdcard1:auto
Code:
~ # ls -l
__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
drwxr-xr-x 2 root root 0 Oct 19 01:35 boot
drwxr-xr-x 2 root root 0 Oct 19 01:35 cache
drwxrwx--x 26 system system 4096 Oct 19 01:14 data
drwxr-xr-x 2 root root 0 Oct 19 01:35 datadata
-rwx------ 1 400 401 1618 Sep 24 20:19 default.prop
drwxr-xr-x 10 root root 3120 Oct 19 01:36 dev
drwxr-xr-x 2 root root 0 Oct 19 01:35 emmc
lrwxrwxrwx 1 root root 20 Jan 1 1970 [email protected] -> /dev/block/mmcblk0p5
lrwxrwxrwx 1 root root 20 Jan 1 1970 [email protected] -> /dev/block/mmcblk0p6
lrwxrwxrwx 1 root root 20 Jan 1 1970 [email protected] -> /dev/block/mmcblk0p1
lrwxrwxrwx 1 root root 20 Jan 1 1970 [email protected]_f -> /dev/block/mmcblk0p2
lrwxrwxrwx 1 root root 20 Jan 1 1970 [email protected]_s -> /dev/block/mmcblk0p3
lrwxrwxrwx 1 root root 20 Jan 1 1970 [email protected]_ro -> /dev/block/mmcblk0p4
lrwxrwxrwx 1 root root 20 Jan 1 1970 [email protected] -> /dev/block/mmcblk0p7
drwx------ 2 400 401 0 Oct 19 01:44 etc
drwxr-xr-x 2 root root 0 Oct 19 01:35 external_sd
-rwx------ 1 400 401 27410 Sep 24 20:19 file_contexts
-rwx------ 1 400 401 975 Sep 24 20:19 fstab.mt8127
-rwx------ 1 400 401 187840 Sep 24 20:19 init
-rwx------ 1 400 401 3151 Sep 24 20:19 init.rc
drwxr-xr-x 2 root root 0 Oct 19 01:35 internal_sd
drwxrwxr-x 5 root system 0 Oct 19 01:35 mnt
dr-xr-xr-x 108 root root 0 Jan 1 1970 proc
-rwx------ 1 400 401 2201 Sep 24 20:19 property_contexts
drwxr-xr-x 2 root root 0 Oct 19 01:35 recovery
drwx------ 3 400 401 0 Sep 24 20:19 res
drwx------ 2 root root 0 Aug 13 16:33 root
drwx------ 3 400 401 0 Sep 24 20:19 sbin
drwxr-xr-x 2 root root 0 Oct 19 01:35 sd-ext
lrwxrwxrwx 1 root root 13 Oct 19 01:35 sdcard -> /data/media/0
-rwx------ 1 400 401 663 Sep 24 20:19 seapp_contexts
-rwx------ 1 400 401 75012 Sep 24 20:19 sepolicy
d---r-x--- 3 root sdcard_r 60 Oct 19 01:35 storage
dr-xr-xr-x 17 root root 0 Oct 19 01:35 sys
drwxr-xr-x 3 400 401 0 Sep 24 20:19 system
drwxrwxr-x 2 root shell 140 Oct 19 01:38 tmp
-rwx------ 1 400 401 7275 Sep 24 20:19 ueventd.rc
Code:
~ # df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 1017272 160 1017112 0% /dev
tmpfs 1017272 276 1016996 0% /tmp
tmpfs 1017272 0 1017272 0% /storage
tmpfs 1017272 0 1017272 0% /mnt/secure
tmpfs 1017272 0 1017272 0% /mnt/fuse
/[email protected] 28194832 7112272 21082560 25% /data
/dev/block/vold/179:97
1927480 679284 1248196 35% /storage/sdcard1
/[email protected] 1032088 662876 369212 64% /system
/[email protected] 705512 12632 692880 2% /cache
Thanks.
I have a device that uses UBIFS and I'm trying to increase the partition size of the /system disk as it doesn't have much space and only half of the NAND is partitioned. Unfortunately, it's not as simple as I thought as the entire nand chip doesn't populate in /dev as a single device.
Here's the boot log where MTD partitions are enumerated.
HTML:
[ 0.000000] Kernel command line: noinitrd rw console=ttyHSL0,115200,n8 androidboot.hardware=qcom ehci-hcd.park=3 msm_rtb.filter=0x37 lpm_levels.sleep_disabled=1 earlycon=msm_hsl_uart,0x78b1000 androidboot.serialno=796a00b0 androidboot.authorized_kernel=true androidboot.baseband=msm rootfstype=ubifs rootflags=bulk_read root=ubi0:rootfs ubi.mtd=13
Code:
[ 0.478465] sps: BAM device 0x07984000 is not registered yet.
[ 0.478706] sps:BAM 0x07984000 is registered.
[ 0.478723] msm_nand_bam_init: msm_nand_bam_init: BAM device registered: bam_handle 0xdde0c800
[ 0.478966] sps:BAM 0x07984000 (va:0xe0bc0000) enabled: ver:0x19, number of pipes:7
[ 0.481536] msm_nand_parse_smem_ptable: Parsing partition table info from SMEM
[ 0.481577] msm_nand_parse_smem_ptable: SMEM partition table found: ver: 4 len: 20
[ 0.481602] msm_nand_version_check: nand_major:1, nand_minor:5, qpic_major:1, qpic_minor:5
[ 0.481640] msm_nand_scan: NAND Id: 0x2690ac98 Buswidth: 8Bits Density: 512 MByte
[ 0.481649] msm_nand_scan: pagesize: 4096 Erasesize: 262144 oobsize: 256 (in Bytes)
[ 0.481656] msm_nand_scan: BCH ECC: 8 Bit
[ 0.481670] msm_nand_scan: CFG0: 0x290409c0, CFG1: 0x08045d5c
[ 0.481670] RAWCFG0: 0x2b8401c0, RAWCFG1: 0x0005055d
[ 0.481670] ECCBUFCFG: 0x00000203, ECCBCHCFG: 0x42040d10
[ 0.481670] RAWECCCFG: 0x42000d11, BAD BLOCK BYTE: 0x00000175
[ 0.481691] Creating 20 MTD partitions on "7980000.nand":
[ 0.481711] 0x000000000000-0x000000280000 : "sbl"
[ 0.482399] 0x000000280000-0x000000500000 : "mibib"
[ 0.482994] 0x000000500000-0x000001b80000 : "efs2"
[ 0.483584] 0x000001b80000-0x000001c80000 : "tz"
[ 0.484194] 0x000001c80000-0x000001d40000 : "rpm"
[ 0.484816] 0x000001d40000-0x000001e40000 : "aboot"
[ 0.485364] 0x000001e40000-0x000002880000 : "boot"
[ 0.485922] 0x000002880000-0x000002900000 : "scrub"
[ 0.486496] 0x000002900000-0x000006fc0000 : "modem"
[ 0.487080] 0x000006fc0000-0x000007140000 : "misc"
[ 0.487672] 0x000007140000-0x000007bc0000 : "recovery"
[ 0.488269] 0x000007bc0000-0x000007c80000 : "fota_none"
[ 0.488883] 0x000007c80000-0x000009340000 : "recoveryfs"
[ 0.489491] 0x000009340000-0x000011bc0000 : "system"
[ 0.490036] 0x000011bc0000-0x000012b40000 : "pad1"
[ 0.490729] 0x000012b40000-0x000013f80000 : "userrw"
[ 0.491301] 0x000013f80000-0x000017a40000 : "hdata"
[ 0.491890] 0x000017a40000-0x00001f000000 : "ntgfota"
[ 0.492500] 0x00001f000000-0x00001f8c0000 : "cust"
[ 0.493103] 0x00001f8c0000-0x000020000000 : "persist"
[ 0.493719] msm_nand_probe: NANDc phys addr 0x7980000, BAM phys addr 0x7984000, BAM IRQ 35
[ 0.493729] msm_nand_probe: Allocated DMA buffer at virt_addr 0xdf446000, phys_addr 0x9f446000
/dev
Code:
crw-rw---- 1 root root 90, 0 Jan 1 1970 mtd0
crw-rw---- 1 root root 90, 1 Jan 1 1970 mtd0ro
crw-rw---- 1 root root 90, 2 Jan 1 1970 mtd1
crw-rw---- 1 root root 90, 20 Jan 1 1970 mtd10
crw-rw---- 1 root root 90, 21 Jan 1 1970 mtd10ro
crw-rw---- 1 root root 90, 22 Jan 1 1970 mtd11
crw-rw---- 1 root root 90, 23 Jan 1 1970 mtd11ro
crw-rw---- 1 root root 90, 24 Jan 1 1970 mtd12
crw-rw---- 1 root root 90, 25 Jan 1 1970 mtd12ro
crw-rw---- 1 root root 90, 26 Jan 1 1970 mtd13
crw-rw---- 1 root root 90, 27 Jan 1 1970 mtd13ro
crw-rw---- 1 root root 90, 28 Jan 1 1970 mtd14
crw-rw---- 1 root root 90, 29 Jan 1 1970 mtd14ro
crw-rw---- 1 root root 90, 30 Jan 1 1970 mtd15
crw-rw---- 1 root root 90, 31 Jan 1 1970 mtd15ro
crw-rw---- 1 root root 90, 32 Jan 1 1970 mtd16
crw-rw---- 1 root root 90, 33 Jan 1 1970 mtd16ro
crw-rw---- 1 root root 90, 34 Jan 1 1970 mtd17
crw-rw---- 1 root root 90, 35 Jan 1 1970 mtd17ro
crw-rw---- 1 root root 90, 36 Jan 1 1970 mtd18
crw-rw---- 1 root root 90, 37 Jan 1 1970 mtd18ro
crw-rw---- 1 root root 90, 38 Jan 1 1970 mtd19
crw-rw---- 1 root root 90, 39 Jan 1 1970 mtd19ro
crw-rw---- 1 root root 90, 3 Jan 1 1970 mtd1ro
crw-rw---- 1 root root 90, 4 Jan 1 1970 mtd2
crw-rw---- 1 root root 90, 5 Jan 1 1970 mtd2ro
crw-rw---- 1 root root 90, 6 Jan 1 1970 mtd3
crw-rw---- 1 root root 90, 7 Jan 1 1970 mtd3ro
crw-rw---- 1 root root 90, 8 Jan 1 1970 mtd4
crw-rw---- 1 root root 90, 9 Jan 1 1970 mtd4ro
crw-rw---- 1 root root 90, 10 Jan 1 1970 mtd5
crw-rw---- 1 root root 90, 11 Jan 1 1970 mtd5ro
crw-rw---- 1 root root 90, 12 Jan 1 1970 mtd6
crw-rw---- 1 root root 90, 13 Jan 1 1970 mtd6ro
crw-rw---- 1 root root 90, 14 Jan 1 1970 mtd7
crw-rw---- 1 root root 90, 15 Jan 1 1970 mtd7ro
crw-rw---- 1 root root 90, 16 Jan 1 1970 mtd8
crw-rw---- 1 root root 90, 17 Jan 1 1970 mtd8ro
crw-rw---- 1 root root 90, 18 Jan 1 1970 mtd9
crw-rw---- 1 root root 90, 19 Jan 1 1970 mtd9ro
brw-rw---- 1 root root 31, 0 Jan 1 1970 mtdblock0
brw-rw---- 1 root root 31, 1 Jan 1 1970 mtdblock1
brw-rw---- 1 root root 31, 10 Jan 1 1970 mtdblock10
brw-rw---- 1 root root 31, 11 Jan 1 1970 mtdblock11
brw-rw---- 1 root root 31, 12 Jan 1 1970 mtdblock12
brw-rw---- 1 root root 31, 13 Jan 1 1970 mtdblock13
brw-rw---- 1 root root 31, 14 Jan 1 1970 mtdblock14
brw-rw---- 1 root root 31, 15 Jan 1 1970 mtdblock15
brw-rw---- 1 root root 31, 16 Jan 1 1970 mtdblock16
brw-rw---- 1 root root 31, 17 Jan 1 1970 mtdblock17
brw-rw---- 1 root root 31, 18 Jan 1 1970 mtdblock18
brw-rw---- 1 root root 31, 19 Jan 1 1970 mtdblock19
brw-rw---- 1 root root 31, 2 Jan 1 1970 mtdblock2
brw-rw---- 1 root root 31, 3 Jan 1 1970 mtdblock3
brw-rw---- 1 root root 31, 4 Jan 1 1970 mtdblock4
brw-rw---- 1 root root 31, 5 Jan 1 1970 mtdblock5
brw-rw---- 1 root root 31, 6 Jan 1 1970 mtdblock6
brw-rw---- 1 root root 31, 7 Jan 1 1970 mtdblock7
brw-rw---- 1 root root 31, 8 Jan 1 1970 mtdblock8
brw-rw---- 1 root root 31, 9 Jan 1 1970 mtdblock9
crw-rw---- 1 root root 10, 90 Jan 1 1970 ramdump_AR6320
crw-rw---- 1 root root 10, 89 Jan 1 1970 ramdump_AR6320_SD
crw-rw---- 1 root root 10, 85 Jan 1 1970 ramdump_modem
crw-rw---- 1 root root 10, 80 Jan 1 1970 ramdump_smem
cat /proc/mounts
Code:
rootfs / rootfs rw 0 0
ubi0:rootfs / ubifs rw,relatime,bulk_read,chk_data_crc 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
tmpfs /dev tmpfs rw,relatime,size=64k,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620 0 0
tmpfs /run tmpfs rw,nosuid,nodev,mode=755 0 0
tmpfs /var/volatile tmpfs rw,relatime 0 0
tmpfs /media/ram tmpfs rw,relatime 0 0
ubi0:usrfs /data ubifs rw,relatime,bulk_read,chk_data_crc 0 0
/dev/ubi1_0 /firmware ubifs rw,relatime,bulk_read,chk_data_crc 0 0
ubi2:userrw /mnt/userrw ubifs rw,sync,relatime,bulk_read,chk_data_crc 0 0
ubi3:hdata /mnt/hdata ubifs ro,relatime,bulk_read,chk_data_crc 0 0
tmpfs /media/drives tmpfs ro,relatime,size=4k 0 0
adb /dev/usb-ffs/adb functionfs rw,relatime 0 0
var /var tmpfs rw,relatime 0 0
/dev/loop0 /mnt/hdata/licenses squashfs ro,relatime 0 0
I tried poking around /sys/devices/7980000.nand but I'm not as experienced with *NIX systems. I've also tried messing with QPST and similar tools but to no avail.
bump
MR1100?