Monday, August 3, 2015

Change default launcher on Letv S1

I recently acquired a Letv S1 (Letv One, Letv X600). It's a great device with the beefy Mediatek X10 SoC, and generally great hardware.

The custom Android version is also quite good, but my interest in watching TV and movies on my phone is limited so I don't need a launcher that reserves a lot of space for this.

But for some reason they lock down the selection of application for activities. Making it impossible to select launcher and browser the normal Android way. Luckily is rather easy to solve this.

These modifications requires a rooted device, but there are plenty instructions on the net describing how to root the device.

In the "etc" folder there is a file called "preferred_activity.xml". This file defines what applications should be used for the different operations. To allow normal selection of application you just remove the items from this file. A reboot might be required afterwards, but thats it.

Unless you know what you are doing, you probably shouldn't delete text from random files in the etc folder, so consider yourself warned.

This is roughly how I would do it manually:
  1. adb pull /etc/preferred_activity.xml
  2. Edit the file and remove default activities you don't want.
  3. Start adbd insecure
  4. Remount system
  5. adb push preferred_activity.xml /etc
  6. Reboot phone
I'm uncertain of wither the file can just be deleted or not. But removing elements should at least be safe enough.

You could use this technique to enable 3rd party handling of PDF, media, sms, office documents. etc. As they seem to define quite a lot of action handling there.

Update:
As a side note, it is probably easier to just change the default applications from the application configuration view. I just noticed there is a "Default apps" option on the bottom left of the view. From there it's possibe to change default applications. The option might have been there all along without me ever noticing it, and just expecting to find everything in the normal place.

But then again, it's more fun deleting system files (I verified in code that it's safe to do so). 

Wednesday, March 5, 2014

Playing with the NOOK HD+

I now have the Kingston MobileLite wireless working pretty much they way I want to. At least for now. WiFi works, but not in bridged mode. But I'm sure that just some minor configuration issues. Looking at the wifi script, and how WiFi is initialized and configured in the stock image should solve that. I wouldn't flash it without having access to the serial port, but it would be possible to do so, and a very stupid move. Time to move on to other projects. I guess I will pick this one up again at some point.


So, back to what I'm really trying to write about here. I bought a NOOK HD+ a little while ago. If I find any hardware that I think is worth a lot more than it's selling for, I have a bad habit of buying it. Regardless of wither I need it at all. I have already been using it to review and backup pictures while out traveling, but now it's time for some fun. I have two things I want to try out.
  • Firefox OS (Gecho)
  • Ubuntu touch
Both systems are rather new for me, so this should be a fun project for a while. But first things first. I want to be able to dual (or triple) boot the device, so I still can keep CM11 on the internal storage. So I guess I will have to do something to make that work. I know people have been dualbooting the device with U-Boot on a SD card, and it also seems like CWM is used to select where to boot from, so i guess that is a start.

As always, don't expect anything to happen to soon. But these projects should entertain me for quite a while.

I have cheated a little, and already started to look at this. So I have Ubuntu Touch running on the internal storage of the device. But it's an old build and the project seems to be discontinued, so I guess there is some work to do there. If anyone want to check it out the, more information can be fond on the wiki. The main image that is linked there seems to be deleted from the servers, so I used this instead. It boots, but there are some minor issues. But I guess it will help if I can port the new image.

But again, first I want to fix the dualboot.

Update:
After checking around a bit, it looks like U-Boot is used to boot from the SD-card, but a project called cyanoboot is used as a second stage bootloader and selection menu. Not CWM, as I mentioned earlier, sorry about that.

Saturday, February 22, 2014

Running DslrDashboardServer on MLW221 OpenWrt

A little while ago I mentioned that I wanted to use the MobileLite Wireless for teetered shooting together with my trusty 50D and a Nook HD+. So my earlier prioritized list of functions is now on hold, and its time to play.

Earlier i found the great application DslrDashboard, so thats what I want to play with. And not only is the source ready, the developer has also created an OpenWrt package for it. This is almost easier than I deserve.

As mentioned in the last post I have cloned a github repo named qdk0901/openwrt-mt7620. Since my original plan were to actually create full support for the MLW221, I already started on adding proper support. So here is a short patch file.


Nothing big there, but at least it's a start.

After applying the patch, the next thing we want to do is getting DslrDashboardServer, and following the instructions on the page.

The next thing is to do a make menuconfig and configure our image. Since I haven't gotten time to look at the filesystem yet, we should still run with initrd. So it would be a smart choice to select that. Quickly summed up, these are roughly the items that needs to be selected.
  • The correct SoC etc.
  • Initrd
  • USB things
  • Vfat
  • Udev
I will most likely have forgotten something here, but you get the idea. I also choose to install the LuCI package, not because it's needed, mostly because I wanted to play around a bit.

Afterwards it's just to build OpenWrt. Boot the MLW221 uimage using tftp and play with the camera. If you have firewall enabled in the image (as I do) you will have to allow INPUT udp/4757. And then its time to play with the camera a bit. And I have to say, it's a quite sweet solution. The Nook HD+ is awesome for this, it's cheap, good sized and the screen is quite nice. And now I guess can finally find a use for the large hole in the bottom left corner of the Nook. It's good to have both hands free when adjusting the tripod.

Some people might find it a bit irritating that we start up in OpenWrt with an open WiFi network, and have to redo all configuration after every reboot. But then again, it's fun to test that it actually works fine.

If anyone want to test out with OpenWrt with the image I played with, you can download it here. If you don't have at least UART attached to your device, you should stay away. Myself I would prefer to just boot from RAM using TFTP (as described earlier). Have fun and play.

Wednesday, February 19, 2014

MobileLite Wireless running OpenWrt, with working wireless

It's been quite a while since last post. A combination of little time to play, and some bumps in the road.

I'll try to sum it up quickly.

After John commented about another project using the WiFi part on th MT7620, I decided to search around a bit, and found a ton of information. The most important being that OpenWrt didn't include the WiFi because of licensing issues.

Kingston were kind enough to include the Ralink SDK, even though the licensing in the source seems to indicate that it violates the license. But then again, I'm not a lawyer, so I can just assume what they are doing is legal.

I check out some code a few places, among those is this one ASUS RT-N56U/N65U/N14U custom firmware, but that is uClinux based, and we wanted OpenWrt. And OpenWrt as close to trunk as posible.

I found quite a few Chinese pages mentioning the WiFi on the device, at first the most interesting one was one called "openwrt-mt7620-pandora". Some minor changes, and I manage to boot the device with WiFi and everything. It was running a 3.3 kernel, but that wasn't any big issue. Then I start to look at the source and sure enough, there is both the Ralink/MediaTek license header in some files. There was also some files that were licensed to Drambox Pandora, with a disclaimer that It's illegal to use with other devices.

But at least, now I know its possible. So I start all over from scratch again. I have the source for the wireless drivers from Kingston, and if others have managed to use them, so should I.

Short story, it was a lot harder than expected. So I have spent quite some time learning the structure of OpenWrt devices, the toolchain etc. Today I finally had plenty of time after work to really sit down and try to solve this. I do a few quick searches to get some information, an this page pops into the search result MT7620 OpenWRT所用的RT2860v2 WIFI驱动package. And it links to this Github page. And sure enough, a few days ago there was a changeset that adds WiFi support to the device.

I just check out the code, configure and builds. And there I have it, the wireless is working just the way I want it to. On what seems like a, pretty current version of OpenWrt. Someone finished doing exactly what I were trying, and failing, to do. It would be stupid of me to continue trying to do this, when someone else has already finished doing it. So much for my learning experience.

I guess I will need to make some minor changes, add the MLW221 as a device. Configure GPIO and file system, and make a patch for it. But its getting closer.

If anyone want to try it out, this is how I do it.
  1. Clone repository
  2. make menuconfig
  3. Configure for our SOC
  4. Configure the WiFi part under Ralink as builtin, and add the stuff we need.
  5. Set image type to initrd
  6. Build
  7. tftp boot to ram
I still have my concerns about the license of some parts of the repository, so consider yourself warned.

Sunday, February 2, 2014

Getting OpenWrt to boot and wireless network to work

I'm back home, and a it's time to get things up and running here.

Our first goal is to get the system up and running with wireless support. We are going to do the testing using tftp boot and an image with embeded root file system.

I have spent a little time trying to learn the structure of OpenWrt and how devices are configured. Created a dts file for our device with the hardware specific parts and changed some of the boot scripts to support the device.

Building the image works fine, and it boots. So we are off to a good start here. For some reason I get decompress errors when booting from the uboot command line, but it works fine when booting from tftp on the main uboot menu (option 1). We might address that later, and find out whats wrong. But for now we are fine with just booting the normal way.

And after digging around a bit, I find out that while the SoC is supported, but the wlan is not. Which leaves us with a few options, use the proprietary driver (and therefore also a old kernel), write a driver for the wifi or use the uClinux environment that Kingston used. For now, I will go for the latter.

I guess I should have checked this out before spending a lot of time on preparing everything else for the image. So no OpenWrt, for now. Time to get a SSH server to our modified stock image.

And last, but not least. My pal Larry has created an OpenWrt wiki page for the device. My device seem to have a different flash chip (and 16MB to play with), but thats all I have to comment on it. Well, that and of course to say good work.

So thats it for now I will try to make an flashable image or something similar next time. Yes, and I almost forgot, I also want to use the device for tethered shooting with automatic backup to the SD-card and/or online services. I got this NOOK HD+ for cheap, and I decided that it would make a great device when shooting tethered. I could of course just do that using a Raspberry PI, since that already works fine, but whats the fun in that.


Sunday, January 26, 2014

MLW221 technical information

MLW221 Hardware

Here is the hardware information I have extracted from the original image + a little bit of information from my first try at booting OpenWrt on the device.
I haven't bothered to verify information or clean out private information from the logs, so if you see anything that should be private please just pretend it's not there. I just thought I should share it, in case anyone else could have some use for it.

Main SoC:
Mediatec
MT7620N

RAM:
SK Hynix
M5PS5182GFR-S6C

Flash:
Spansio
S25FL128S?

GPIO:
Output 7 Power
Output 11 WIFI
Output 43 Status
Input 1 Reset


MT7620 # printenv
bootcmd=tftp
bootdelay=1
baudrate=57600
ethaddr="00:AA:BB:CC:DD:10"
ipaddr=10.10.10.123
serverip=10.10.10.3
stdin=serial
stdout=serial
stderr=serial

Environment size: 149/4092 bytes


# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00030000 00010000 "Bootloader"
mtd1: 00010000 00010000 "Config"
mtd2: 00010000 00010000 "Factory"
mtd3: 00f60000 00010000 "Kernel"
mtd4: 00050000 00010000 "User_CFG"

# cat /proc/partitions
major minor  #blocks  name

  31        0        192 mtdblock0
  31        1         64 mtdblock1
  31        2         64 mtdblock2
  31        3      15744 mtdblock3
  31        4        320 mtdblock4

# cat cpuinfo
system type        : Ralink SoC
processor        : 0
cpu model        : MIPS 24Kc V5.0
BogoMIPS        : 386.04
wait instruction    : yes
microsecond timers    : yes
tlb_entries        : 32
extra interrupt vector    : yes
hardware watchpoint    : yes, count: 4, address/irw mask: [0x0ff8, 0x0ff8, 0x06d3, 0x0ff8]
ASEs implemented    : mips16 dsp
shadow register sets    : 1
core            : 0
VCED exceptions        : not available
VCEI exceptions        : not available

# cat cmdline
console=ttyS1,57600n8 root=/dev/ram0 console=ttyS0

# cat mounts
rootfs / rootfs rw 0 0
proc /proc proc rw,relatime 0 0
none /var ramfs rw,relatime 0 0
none /tmp ramfs rw,relatime 0 0
none /media ramfs rw,relatime 0 0
none /sys sysfs rw,relatime 0 0
none /dev/pts devpts rw,relatime,mode=600 0 0
none /proc/bus/usb usbfs rw,relatime 0 0
none /etc ramfs rw,relatime 0 0
mdev /dev ramfs rw,relatime 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
/dev/mtdblock4 /etc/config jffs2 rw,relatime 0 0

# cat modules
tntfs 490768 0 - Live 0xc0388000 (P)
texfat 151536 0 - Live 0xc02ab000 (P)

# cat version
Linux version 2.6.36+ (root@CVS2) (gcc version 3.4.2) #15 Tue Sep 3 11:17:59 CST 2013

// Stock image
Creating 5 MTD partitions on "raspi":
0x000000000000-0x000000030000 : "Bootloader"
0x000000030000-0x000000040000 : "Config"
0x000000040000-0x000000050000 : "Factory"
0x000000050000-0x000000fb0000 : "Kernel"
0x000000fb0000-0x000001000000 : "User_CFG" // jffs2

// OpenWRT
[    2.280000] m25p80 spi32766.0: found s25fl129p1, expected mx25l6405d
[    2.290000] m25p80 spi32766.0: s25fl129p1 (16384 Kbytes)
[    2.310000] 4 ofpart partitions found on MTD device spi32766.0
[    2.320000] Creating 4 MTD partitions on "spi32766.0":
[    2.330000] 0x000000000000-0x000000030000 : "u-boot"
[    2.340000] 0x000000030000-0x000000040000 : "u-boot-env"
[    2.350000] 0x000000040000-0x000000050000 : "factory"
[    2.360000] 0x000000050000-0x000000800000 : "firmware"
[    2.380000] 0x0000004a6074-0x000000800000 : "rootfs"

Boot messages from original firmware

U-Boot 1.1.3 (Apr 10 2013 - 15:50:37)

Board: Ralink APSoC DRAM:  64 MB

relocate_code Pointer at: 83fb4000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
spi_wait_nsec: 29
spi device id: 1 20 18 4d 1 (20184d01)
find flash: S25FL129P
raspi_read: from:30000 len:1000
*** Warning - bad CRC, using default environment

============================================
Ralink UBoot Version: 4.1.1.0
--------------------------------------------
ASIC 7620_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Apr 10 2013  Time:15:50:37
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 580 MHZ ####
 estimate memory size =64 Mbytes

Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   7: Load Boot Loader code then write to Flash via Serial.
   9: Load Boot Loader code then write to Flash via TFTP.
 0
  
3: System Boot system code via Flash.
## Booting image at bc050000 ...
raspi_read: from:50000 len:40
   Image Name:   Linux Kernel Image
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    4546612 Bytes =  4.3 MB
   Load Address: 80000000
   Entry Point:  8000c310
raspi_read: from:50040 len:456034
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 8000c310) ...
## Giving linux memsize in MB, 64

Starting kernel ...


LINUX started...

 THIS IS ASIC
Linux version 2.6.36+ (root@CVS2) (gcc version 3.4.2) #15 Tue Sep 3 11:17:59 CST 2013

 The CPU feqenuce set to 580 MHz
 PCIE: bypass PCIe DLL.
 PCIE: Elastic buffer control: Addr:0x68 -> 0xB4
 disable all power about PCIe
 PCIE: PLL power down for MT7620N
CPU revision is: 00019650 (MIPS 24Kc)
Determined physical RAM map:
 memory: 04000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00004000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00004000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: console=ttyS1,57600n8 root=/dev/ram0 console=ttyS0
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
Writing ErrCtl register=0007d577
Readback ErrCtl register=0007d577
Memory: 56328k/65536k available (4731k kernel code, 9208k reserved, 852k data, 2808k init, 0k highmem)
NR_IRQS:128
console [ttyS1] enabled
Calibrating delay loop... 386.04 BogoMIPS (lpj=772096)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource MIPS
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RT3xxx EHCI/OHCI init.
JFFS2 version 2.2 (NAND) (SUMMARY) (ZLIB) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
fuse init (API version 7.15)
msgmni has been set to 110
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered (default)
Ralink gpio driver initialized
led=43, on=5, off=5, blinks,=4000, reset=1, time=4000
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x10000500 (irq = 37) is a 16550A
serial8250: ttyS1 at MMIO 0x10000c00 (irq = 12) is a 16550A
brd: module loaded
flash0: started
deice id : 1 20 18 4d 1 (20184d01)
S25FL129P(01 20184d01) (16384 Kbytes)
mtd .name = raspi, .size = 0x01000000 (0M) .erasesize = 0x00000010 (0K) .numeraseregions = 65536
Creating 5 MTD partitions on "raspi":
0x000000000000-0x000000030000 : "Bootloader"
0x000000030000-0x000000040000 : "Config"
0x000000040000-0x000000050000 : "Factory"
0x000000050000-0x000000fb0000 : "Kernel"
0x000000fb0000-0x000001000000 : "User_CFG"
rdm_major = 253
SMACCR1 -- : 0x0000000c
SMACCR0 -- : 0x43762077
Ralink APSoC Ethernet Driver Initilization. v3.0  256 rx/tx descriptors allocated, mtu = 1500!
SMACCR1 -- : 0x0000000c
SMACCR0 -- : 0x43762077
PROC INIT OK!
PPP generic driver version 2.4.2
PPP MPPE Compression module registered
NET: Registered protocol family 24
PPTP driver version 0.8.5


=== pAd = c0198000, size = 807960 ===

<-- RTMPAllocTxRxRingMemory, Status=0
<-- RTMPAllocAdapterBlock, Status=0
AP Driver version-2.7.1.2
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
rt3xxx-ehci rt3xxx-ehci: Ralink EHCI Host Controller
rt3xxx-ehci rt3xxx-ehci: new USB bus registered, assigned bus number 1
rt3xxx-ehci rt3xxx-ehci: irq 18, io mem 0x101c0000
rt3xxx-ehci rt3xxx-ehci: USB 0.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
rt3xxx-ohci rt3xxx-ohci: RT3xxx OHCI Controller
rt3xxx-ohci rt3xxx-ohci: new USB bus registered, assigned bus number 2
rt3xxx-ohci rt3xxx-ohci: irq 18, io mem 0x101c1000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
MTK MSDC device init.
mtk-sd: MediaTek MT6575 MSDC Driver
nf_conntrack version 0.5.0 (880 buckets, 3520 max)
IPVS: Registered protocols ()
IPVS: Connection hash table configured (size=4096, memory=32Kbytes)
IPVS: ipvs loaded.
GRE over IPv4 demultiplexor driver
gre: can't add protocol
ip_tables: (C) 2000-2006 Netfilter Core Team, Type=Restricted Cone
TCP cubic registered
NET: Registered protocol family 10
NET: Registered protocol family 17
L2TP core driver, V2.0
PPPoL2TP kernel driver, V2.0
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
msdc0 -> ops_get_cd return<0> <- msdc_ops_get_cd() : L<2273> PID<kworker/u:1><0x16>
Freeing unused kernel memory: 2808k freed
init started: BusyBox v1.12.1 (2013Algorithmics/MIPS FPU Emulator v1.5
-09-03 11:14:23 CST)
starting pid 31, tty '': '/etc_ro/rcS'texfat: module license 'Commercial. For support email exfat-support@tuxera.com' taints kernel.

Disabling lock debugging due to kernel taint
Tuxera exFAT driver 3013.2.7.2 [Flags: R/W MODULE].
Tuxera NTFS driver 3013.2.5 [Flags: R/W MODULE].
usb 1-1: new high speed USB device using rt3xxx-ehci and address 2
devpts: called with bogus options
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 3 ports detected
Welcome to
    _______  _______  ___     __  ____   _  _   ___
    |  ___  \|   __  ||   |   |__||    \ | || | /  /
    | |___| ||  |__| ||   |__  __ |     \| || |/  /
    |   _   /|   _   ||      ||  || |\     ||     \
    |__| \__\|__| |__||______||__||_| \____||_|\___\

                    =System Architecture Department=

[check_jffs]80 : JFFS_OK
led=11, on=1, off=4000, blinks,=1, reset=1, time=4000
semget err:: No such led=7, on=1, off=4000, blinks,=1, reset=1, time=4000
file or directory
Set: phy[0].reg[0] = 3100
Set: phy[1].reg[0] = 3100
Set: phy[2].reg[0] = 3100
Set: phy[3].reg[0] = 3100
Set: phy[4].reg[0] = 3100
nvram_init: INFO=>nvram MAC initialized successfully!
==>shm_init()!!
check_shm_hash: Check shm hash value
nvram_init: INFO=>nvram conf initialized successfully!
nvram_init: INFO=> RAM CONF successful created!
nvram_init: INFO=> RC.CONF successful created!
---------------- Get WLAN MAC 00:26:b7:05:ff:fe---------------
switch reg write offset=94, value=1000
switch reg write offset=2004, value=ff0003
switch reg write offset=2104, value=ff0003
switch reg write offset=2204, value=ff0003
switch reg write offset=2304, value=ff0003
switch reg write offset=2404, value=ff0003
switch reg write offset=2504, value=ff0003
switch reg write offset=2010, value=810000c0
switch reg write offset=2110, value=810000c0
switch reg write offset=2210, value=810000c0
switch reg write offset=2310, value=810000c0
switch reg write offset=2410, value=810000c0
switch reg write offset=2510, value=810000c0
switch reg write offset=2610, value=81000000
switch reg write offset=2710, value=81000000
switch reg write offset=2604, value=20ff0003
switch reg write offset=2704, value=20ff0003
Special Tag Disabled
switch reg write offset=2610, value=81000000
switch reg wRaeth v3.0 (riTasklette,SkbRecycle o)
ffset
phy_tx_ring = 0x028f7000, tx_ring = 0xa28f7000

phy_rx_ring0 = 0x028f8000, rx_ring0 = 0xa28f8000
SMACCR1 -- : 0x00000026
SMACCR0 -- : 0xb705fffe
=2CDMA_CSG_CFG = 81000000
01GDMA1_FWD_CFG = 20710000
4, value=10001
switch reg write offset=2114, value=10001
switch reg write offset=2214, value=10001
switch reg write offset=2314, value=10001
switch reg write offset=2414, value=10002
switch reg write offset=2514, value=10001
REG_ESW_WT_MAC_ATC is 0x7ff0002
done.
ifconfig: SIOCSIFHWADDR: No such device
ifconfig: ioctl 0x8913 failed: No such device
device vlan0001 entered promiscuous mode
device eth2 entered promiscuous mode
input_access=[3]
echo 3 > /proc/lan_wlan_access_controller
sh: can't create /proc/lan_wlan_access_controllebr0: port 1(vlan0001) entering learning state
r:br0: port 1(vlan0001) entering learning state
 nonexistent directory
Fri Jan  1 00:00:00 GMT 2010
/etc_ro/rcS: line 138: wd_keepalive: not found
iptables: No chain/target/match by that name.
iptables: No chain/target/match by that name.
iptables: No chain/target/match by that name.
iptables: No chain/target/match by that name.
Using intrapositioned negation (`--option ! this`) is deprecated in favor of extrapositioned (`! --option this`).
Using intrapositioned negation (`--option ! this`) is deprecated in favor of extrapositioned (`! --option this`).
iptables v1.4.10:
The "nat" table is not intended for filtering, the use of DROP is therefore inhibited.


Try `iptables -h' or 'iptables --help' for more information.
ifconfig: ioctl 0x8913 failed: No such device
interface ra2 does not exist!
ifconfig: ioctl 0x8913 failed: No such device
interface ra2 does not exist!
[Enter Test] in wlan_led_ctrl.c main()
.killall: ap_client_run: no process killed
insmod: ipv6passthru.ko: module not found
/usr/shell/dnsmasq.sh stop ok
dnsmasq: read /etc/hosts - 2 addresses
dnsmasq: read /etc/hosts - 2 addresses
dnsmasq: [truncated] m
/usr/shell/dnsmasq.sh start ok
sh: /usr/sbin/miniupnpd: not found
/usr/shell/udhcpd.sh config ok
/usr/shell/udhcpd.sh start ok

***** g_wl_interface = ra0 ******

MAX_NUM_SESSIONS : 5; NUM_SEES: 64
ls: /dev/sd*: No such file or directory
aa
killall: wifidetect: no process killed


===wifidetect start===

killall: udhcpc.sh: no process killed
/etc_ro/rcS: line 242: /usr/local/apache2/bin/htpasswd: not found
killall: udhcpc: no process killed
ls: /media/*/mlwfw_v*.*.*.bin: No such file or directory
killall: DMS: no process killed
killall: smbd: no process killed
killall: nmbd: no process killed
kill samba server firsthello, samba!
startsmbfilepwent_internal: file /tmp/samba/private/smbpasswd did not exist. File successfully created.
User guest password set to none.
new GPIO mode
ls: /media/*/gemtek_easytest.txt: No such file or directory
main(205) ::
DMS_Create()
DLNA DMS: UUID=[aaab4c54-ea1b-1885-b390-0026b705fffe]
starting pid 8225, tty '/dev/ttyS1': '/bin/sh'
IP Address List: 192.168.200.254


BusyBox v1.12.1 (2013-09-03 11:14:23 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

#

Monday, January 20, 2014

Time to start working on the port again

I have been out traveling, and therefore unable work on this little project for some time now. The last status before I left was that I booted OpenWrt and wrote a quick draft with all the hardware specifications. I will try to clean things up a little bit and publish things.

While I were away, a "reader" called Larry has picked the project up and ported it as well. The last status update from him were that things were booting, but WiFi were missing. So I guess I will merge the changes, and see where we are at. I will also find out how to share the code, if it should be pushed to OpenWrt, or branched somewhere first.

Stay tuned, and there should be a bootable image in not to long.