Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xiaomi uses mtd4 for JFFS2. SDK uses MTD3 #30

Open
GrumpyMeow opened this issue May 10, 2017 · 1 comment
Open

Xiaomi uses mtd4 for JFFS2. SDK uses MTD3 #30

GrumpyMeow opened this issue May 10, 2017 · 1 comment

Comments

@GrumpyMeow
Copy link
Owner

Better is to make this eqeual

@GrumpyMeow GrumpyMeow changed the title Xiaomi uses mtd4 for JFFS2. SDK users MTD3 Xiaomi uses mtd4 for JFFS2. SDK uses MTD3 May 10, 2017
@GrumpyMeow
Copy link
Owner Author

GrumpyMeow commented May 16, 2017

this is from a working system:

lib80211: common routines for IEEE802.11 drivers
VFS: Mounted root (cramfs filesystem) readonly on device 31:2.
Freeing init memory: 120K
hub 1-0:1.0: /run/media/fedora/software/SN986_1.50_P2P_TUTK_050a_20160921_1712/snx_sdk/kernel/linux-2.6.35.12/src/drivers/usb/core/hub.c 3351: state 7 ports 1 chg 0002 evt 0000
hub 1-0:1.0: port 1, status 0503, change 0000, 480 Mb/s
Create device file
snx_crypto driver loaded.
sonix crypto diver register
sonix_nvram_init
Init nvram id: 1303281516
Init nvram_crc id: 0x54594
nvram_check crc = 54594 crc_ref = 54594
SONIX Kernel NVRAM initialized
starting pid 529, tty '': '/etc/init.d/rcS'
Load drivers...
Sonix GPIO Driver

/dev/nvram
130 crw-r--r-- 1 root root 251, 0 Jan 1 1970 nvram

cat /proc/mtd
dev: size erasesize name
mtd0: 000c0000 00001000 "uboot"
mtd1: 00300000 00001000 "kernel"
mtd2: 00700000 00001000 "rootfs"
mtd3: 00400000 00001000 "rescue"
mtd4: 00100000 00001000 "etc"
mtd5: 00040000 00001000 "userconfig"

cat /proc/meminfo
MemTotal: 36956 kB
MemFree: 5860 kB
Buffers: 3936 kB
Cached: 12360 kB
SwapCached: 0 kB
Active: 14020 kB
Inactive: 10728 kB
Active(anon): 9936 kB
Inactive(anon): 28 kB
Active(file): 4084 kB
Inactive(file): 10700 kB
Unevictable: 24 kB
Mlocked: 24 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 8492 kB
Mapped: 4736 kB
Shmem: 1512 kB
Slab: 2504 kB
SReclaimable: 576 kB
SUnreclaim: 1928 kB
KernelStack: 584 kB
PageTables: 264 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 18476 kB
Committed_AS: 50504 kB
VmallocTotal: 450560 kB
VmallocUsed: 23596 kB
VmallocChunk: 413692 kB

cat /dev/vmallocinfo
0xbf000000-0xbf003000 12288 module_alloc_update_bounds+0xc/0x5c pages=2 vmalloc
0xbf007000-0xbf00a000 12288 module_alloc_update_bounds+0xc/0x5c pages=2 vmalloc
0xbf00e000-0xbf010000 8192 module_alloc_update_bounds+0xc/0x5c pages=1 vmalloc
0xbf014000-0xbf016000 8192 module_alloc_update_bounds+0xc/0x5c pages=1 vmalloc
0xbf01a000-0xbf020000 24576 module_alloc_update_bounds+0xc/0x5c pages=5 vmalloc
0xbf025000-0xbf04a000 151552 module_alloc_update_bounds+0xc/0x5c pages=36 vmalloc
0xbf052000-0xbf054000 8192 module_alloc_update_bounds+0xc/0x5c pages=1 vmalloc
0xbf058000-0xbf05a000 8192 module_alloc_update_bounds+0xc/0x5c pages=1 vmalloc
0xbf05e000-0xbf062000 16384 module_alloc_update_bounds+0xc/0x5c pages=3 vmalloc
0xbf066000-0xbf06b000 20480 module_alloc_update_bounds+0xc/0x5c pages=4 vmalloc
0xbf06f000-0xbf071000 8192 module_alloc_update_bounds+0xc/0x5c pages=1 vmalloc
0xbf075000-0xbf077000 8192 module_alloc_update_bounds+0xc/0x5c pages=1 vmalloc
0xbf07b000-0xbf08a000 61440 module_alloc_update_bounds+0xc/0x5c pages=14 vmalloc
0xbf090000-0xbf185000 1003520 module_alloc_update_bounds+0xc/0x5c pages=244 vmalloc
0xbf1a0000-0xbf1a3000 12288 module_alloc_update_bounds+0xc/0x5c pages=2 vmalloc
0xc4807000-0xc4813000 49152 cramfs_uncompress_init+0x2c/0x60 pages=11 vmalloc
0xc4814000-0xc4857000 274432 jffs2_zlib_init+0x14/0xa4 pages=66 vmalloc
0xc4858000-0xc4864000 49152 jffs2_zlib_init+0x40/0xa4 pages=11 vmalloc
0xc4866000-0xc4868000 8192 snx_spi_probe+0x1a0/0x3d0 ioremap
0xc486a000-0xc486c000 8192 usb_ehci_sonix_probe+0x7c/0x12c ioremap
0xc486e000-0xc4870000 8192 snx_hdma_probe+0xd8/0x530 ioremap
0xc4876000-0xc4878000 8192 snx_crypto_probe+0x68/0x698 [snx_crypto] ioremap
0xc487e000-0xc4880000 8192 0xbf00b070 pages=1 vmalloc
0xc4886000-0xc4888000 8192 snx_gpio_probe+0x9c/0x39c [snx_gpio] ioremap
0xc488e000-0xc4890000 8192 snx_aud_gpio_register+0x14/0x6c [snx_i2s_gpio] ioremap
0xc48c8000-0xc48cb000 12288 0xbf04b100 ioremap
0xc48cc000-0xc48ce000 8192 0xbf04b15c ioremap
0xc48e4000-0xc4905000 135168 firmware_loading_store+0x68/0x1dc
0xc4906000-0xc4908000 8192 soc_camera_host_register+0x56c/0x8c8 pages=1 vmalloc
0xc490a000-0xc490c000 8192 snx_sd_probe+0xfc/0x4b8 [snx_sd] ioremap
0xc4916000-0xc4918000 8192 snx_wdt_probe+0xa0/0x150 [snx_wdt] ioremap
0xc4a64000-0xc4a66000 8192 snx_vc_probe+0x108/0x704 [snx_vc] ioremap
0xc4ae6000-0xc4ae8000 8192 snx_rtc_probe+0xd8/0x1a4 [snx_rtc] ioremap
0xc4ae9000-0xc4aee000 20480 _rtw_zvmalloc+0xc/0x30 [8188eu] pages=4 vmalloc
0xc4aef000-0xc4b06000 94208 _rtw_zvmalloc+0xc/0x30 [8188eu] pages=22 vmalloc
0xc4b07000-0xc4b26000 126976 _rtw_zvmalloc+0xc/0x30 [8188eu] pages=30 vmalloc
0xc4b27000-0xc4b35000 57344 _rtw_zvmalloc+0xc/0x30 [8188eu] pages=13 vmalloc
0xc4b36000-0xc4b38000 8192 _rtw_zvmalloc+0xc/0x30 [8188eu] pages=1 vmalloc
0xc4b39000-0xc4b3c000 12288 _rtw_zvmalloc+0xc/0x30 [8188eu] pages=2 vmalloc
0xc4b3d000-0xc4b3f000 8192 _rtw_zvmalloc+0xc/0x30 [8188eu] pages=1 vmalloc
0xc4b40000-0xc4b4d000 53248 _rtw_zvmalloc+0xc/0x30 [8188eu] pages=12 vmalloc
0xc4b4e000-0xc4b61000 77824 _rtw_zvmalloc+0xc/0x30 [8188eu] pages=18 vmalloc
0xc5000000-0xc5a01000 10489856 dma_declare_coherent_memory+0x50/0xf0 ioremap
0xc6000000-0xc6c01000 12587008 dma_declare_coherent_memory+0x50/0xf0 ioremap

/proc # df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root [EXFAT] statfs on device is ejected
15392 15392 0 100% /
dev 512 8 504 2% /dev
/dev/mtdblock4 1024 556 468 54% /etc
tmpfs 36956 1184 35772 3% /tmp
lock 18476 0 18476 0% /var/lock
log 18476 336 18140 2% /var/log
run 18476 16 18460 0% /var/run
spool 18476 0 18476 0% /var/spool
tmp 18476 0 18476 0% /var/tmp
mq 18476 0 18476 0% /var/mq
media 18476 0 18476 0% /media
/dev/mmcblk0p1 102208 41096 61112 40% /media/mmcblk0p1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant