Lots of condensed News

Lots of things happened, That made me forget to update The blog:

FSO/SHR:

  • After porting GNU/Linux to the HTC Dream(with mickeyl,and leviathan) I’ve nearly abandoned that port(altough it remains supported by replicant),it has driven me crazy (think about debugging an alsa driver without prior knowledge of alsa, combined with the lack of serial cable(so no kgdb) ) : two blockers persist: wifi and bad quality alsa driver, tough wifi may be solved by Alex[sp3dev] for another device. I also made some GUI improvements.The keyboard is also now upstream in x-keyboard-config.
  • Instead I concentrated my efforts on the nokia N900, Now thanks to mrmoku,mickeyl and me we have the modem that is now capable of registering to the network using the new implementation that has more parts in vala. It is also capable of modem forwarding thanks to PaulFertserĀ  and me, I also did some userland integration work and some small kermel work
  • for a short period of time I also made some fix for the openmoko freerunner(speed improvements, fix anĀ  accelerometer program with someone on irc(eliza42))

Replicant:

  • I ported replicant to froyo 2.2 branch, we also now have an SDK that compiles thanks to paulk on irc(he did most of the work,thanks a lot).
  • I also ported replicant to the nexus one. It was only possible because I bugreported to AOSP(android open source project), and that someone told me how to fix a nasty graphic bug.

Buglabs:

  • I wrote some applications for the bug 1.x
  • I started porting the bug 1.x to openembedded and I also started porting it to the mainline kernel, I did a patch for adding the bug 1.x mainline and it got accepted(although for now there is only the serial port). The nice part was the debugging: with addr2line it is possible to know the address of the dmesg buffer, that you translate to a physical address, and then you md it in u-boot. Practically speaking with that technique you can see dmesg messages from uboot after rebooting the device, making it possible to see dmesg without the serial port initialized in the kernel(handy for writing the serial port platform driver “description”)
  • I got a bug 2.0 and I am doing a lot of work with it(adding support for it to the stock openembedded,porting the EMF detector, obtimizing navit for its small screen, having fun). Hardware wise it’s a lot better than the bug 1.x because the hardware is a lot less buggy: while I couldn’t recommend the bug 1.x to the people and had to say that it was great but that the hardware was really problematic,there is no such problem anymore for the 2.0 version. Although the price is still high.

Trisquel:

  • I’ve abandoned Gentoo and now run trisquel, for several reason: The first is that there wasn’t a clear separation between free and non-free software in gentoo, the second is that because I’m always cross-compiling something, I don’t have the machine time to compile the computer’s packages. I’m now mostly happy with it(now that there is mplayer in it), I have nearly no issues with it(I’ve ath9k wireless card so my wireless is supported), tough there is no 3d with recent ati cards, because they didn’t release the microcode/firmware source code.Also There are always some minor software bugs. I’ve even backported a patch for it that fixed youtube in totem and that went in trisquel.I didn’t choose gnewsense because trisquel has more recent packages,tough I may switch to gnewsense in the future since it is based on debian.

By the way, I’ve a new blog, I imported all the content from the old blog.

Denis.

Posted in Uncategorized | Leave a comment

GNU/Linux on the htcdream

I’ve finally got the touchscreen working on the htcdream…
It consist of a rebased refresh patch for the lcd that is not from me and another patch(that is from me with pointers) that transform the touchscreen in a tslib device. The patches are against the 2.6.29 kernel
It works flawlessly with kdrive and should work with xorg if someone try…
We have touchscreen and usbnet working,we now need:
*telephony(the fso framework works but not shr’ophonekitd)
*alsa(in qualcomm’s kernel)
*wifi(in 2.6.31 kenrel)
*maybe gps,camera and compas
*there is also a 3d chip but I don’t know if the specifications are available somewhere….

So now I’m cross compiling the whole shr because I don’t know when the new images will be out…and I need to do that in order to try to fix ophonekitd

Posted in Uncategorized | Leave a comment

Using the HTC Dream with only free software running on the application cpu

Monday, August 31, 2009, 07:20 PM -

I’ve bought a G1 in order to help some people with the task of freeing the device.
We have now a project and it’s name is replicant
There are 2 ways of freeing the device:
* porting a GNU/Linux distribution like SHR on it
* freeing the android stack
I really wanted to do the first thing but ended doing the second because it was easier
Basically I’ve sound and ril working.
Other free things works,but 3d is not working,but it’s usable without 3d,gps doesn’t work yet either
Basically I’ve been inspired and copied a function from playwav2.c to make sound work.
for the ril I added the following into system.prop:

rild.libpath=/system/lib/libreference-ril.so
rild.libargs=-d /dev/smd0

and it worked but I couldn’t receive calls…
aarown pointed me to this that I followed :
http://android-tricks.blogspot.com/2009 … 2119186963
following what “alien” said:
INSERT INTO secure (name, value) VALUES (‘device_provisioned’, 1);
and receiving call works…and a lot more thing is working now(such as all the keys)

Posted in Uncategorized | Leave a comment

Console problem solved

Tuesday, July 14, 2009, 12:12 AM -

In the previous post there was that line:
mdev requires a mounted procfs, not started.
so mdev didn’t start and that made the console appear…
I investigated more and found out that certain devices were not created such as /dev/console,/dev/null and so on…so making mdev.sh create them solved the problem

Posted in Uncategorized | Leave a comment

wrt54gs v4 rootfs booting

Sunday, July 12, 2009, 10:18 PM -

Me,mario-goulart(he tried a lot of things that didn’t work…that was really helpful),and otavio(giving good advises) have been working together to fix a problem:
At first when you booted you had init that was killed or something like this,after running strace I found that it was because it had a segmentation fault,every other binaries that used dynamic libraries had the same problem…I started investigating…at a point someone named mario-goulart shown in irc having the exact same problem…I found out that he wanted to do the exact same work than me but with a different router,so we searched the root of the problem together with the help of otavio.
with the help of gdb compiled statically I found the problematic functions.
Then pb_ told me that “if it’s crashing there, it sounds like gcc is failing to inline those functions for some reason.”
And that hint was true…those functions weren’t inlined…
Then looking on the web I found a post about the -Os optimization failing to inline things on the gcc version I used.
Then I removed the -Os switch in the uclibc configuration and it worked…
But then I had a bug that mario worked around(using boot scripts instead of init): init didn’t load the correct runlevel(the runlevel after S wasn’t ran)…so with the help of the openmoko,after some trying I spotted the difference and changed the /etc/init.d/rcS file overwriting it with that content:

exec /etc/init.d/rc S

and it worked…
so here’s the boot log(still using NFS):
CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: Thu Sep 22 15:03:49 CST 2005 (root@localhost.localdomain)
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.

Initializing Arena
Initializing Devices.

No DPN
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 3.90.37.0
CPU type 0×29008: 200MHz
Total memory: 16384 KBytes

Total memory used by CFE: 0×80300000 – 0x803A3620 (669216)
Initialized Data: 0×80339530 – 0x8033BC40 (10000)
BSS Area: 0x8033BC40 – 0x8033D620 (6624)
Local Heap: 0x8033D620 – 0x803A1620 (409600)
Stack Area: 0x803A1620 – 0x803A3620 (8192)
Text (code) segment: 0×80300000 – 0×80339530 (234800)
Boot area (physical): 0x003A4000 – 0x003E4000
Relocation Factor: I:00000000 – D:00000000

Boot version: v3.6
The boot is CFE

mac_init(): Find mac [00:14:BF:E1:DA:DD] in location 1
Nothing…

eou_key_init(): Find key pair in location 0
The eou device id is same
The eou public key is same
The eou private key is same
Device eth0: hwaddr 00-14-BF-E1-DA-DD, ipaddr 192.168.1.1, mask 255.255.255.0
gateway not set, nameserver not set
Automatic startup canceled via Ctrl-C
CFE> ^C
CFE> ^C
CFE> ^C
CFE> ^C
CFE> ^C
CFE> ^C
CFE> ^C
CFE> ^C
CFE> ^C
CFE> ^C
CFE> ^C
CFE> ^C
CFE> ^C
CFE> ^C
CFE> ^C
CFE> ^C
CFE> ^C
CFE> ^C
CFE> ifconfig eth0 -auto
Device eth0: hwaddr 00-14-BF-E1-DA-DD, ipaddr 168.0.0.139, mask 255.255.255.0
gateway 168.0.0.2, nameserver 168.0.0.2, domain workgroup
*** command status = 0
CFE> boot -elf -tftp 168.0.0.2:init.sysvinit
Loader:elf Filesys:tftp Dev:eth0 File:168.0.0.2:init.sysvinit Options:(null)
Loading: 0×80001000/2863616 0x802bc200/144608 Entry at 0×80005490
Closing network.
Starting program at 0×80005490
Linux version 2.6.30 (embedded@port4) (gcc version 4.2.4) #1 Fri Jul 3 07:36:40 CEST 2009
CPU revision is: 00029008 (Broadcom BCM3302)
ssb: Core 0 found: ChipCommon (cc 0×800, rev 0x0E, vendor 0×4243)
ssb: Core 1 found: Fast Ethernet (cc 0×806, rev 0×09, vendor 0×4243)
ssb: Core 2 found: MIPS 3302 (cc 0×816, rev 0×06, vendor 0×4243)
ssb: Core 3 found: USB 1.1 Host (cc 0×817, rev 0×02, vendor 0×4243)
ssb: Core 4 found: MEMC SDRAM (cc 0x80F, rev 0×01, vendor 0×4243)
ssb: Core 5 found: IEEE 802.11 (cc 0×812, rev 0×09, vendor 0×4243)
ssb: Core 6 found: Roboswitch (cc 0x81C, rev 0×02, vendor 0×4243)
ssb: Initializing MIPS core…
ssb: core 0×0800, irq : 2(S) 3* 4 5 6 D I
ssb: core 0×0806, irq : 2(S) 3 4* 5 6 D I
ssb: core 0×0816, irq : 2(S) 3 4 5* 6 D I
ssb: core 0×0817, irq : 2(S) 3 4 5 6* D I
ssb: core 0x080f, irq : 2(S) 3 4 5 6 D I*
ssb: core 0×0812, irq : 2(S)* 3 4 5 6 D I
ssb: core 0x081c, irq : 2(S) 3 4 5 6 D I*
ssb: set_irq: core 0×0806, irq 4 => 4
ssb: set_irq: core 0×0816, irq 5 => 2
ssb: set_irq: core 0×0812, irq 2 => 5
ssb: after irq reconfiguration
ssb: core 0×0800, irq : 2(S) 3* 4 5 6 D I
ssb: core 0×0806, irq : 2(S) 3 4* 5 6 D I
ssb: core 0×0816, irq : 2(S)* 3 4 5 6 D I
ssb: core 0×0817, irq : 2(S) 3 4 5 6* D I
ssb: core 0x080f, irq : 2(S) 3 4 5 6 D I*
ssb: core 0×0812, irq : 2(S) 3 4 5* 6 D I
ssb: core 0x081c, irq : 2(S) 3 4 5 6 D I*
ssb: Sonics Silicon Backplane found at address 0×18000000
Serial init done.
Determined physical RAM map:
memory: 01000000 @ 00000000 (usable)
Initrd not found or empty – disabling initrd
Zone PFN ranges:
Normal 0×00000000 -> 0×00001000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0×00000000 -> 0×00001000
On node 0 totalpages: 4096
free_area_init_node: node 0, pgdat 802993d0, node_mem_map 802e1000
Normal zone: 32 pages used for memmap
Normal zone: 0 pages reserved
Normal zone: 4064 pages, LIFO batch:0
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 4064
Kernel command line: root=/dev/nfs rw ip=dhcp nfsroot=168.0.0.2:/embedded/NFS console=ttyS0,115200 init=/sbin/init.sysvinit debug
Primary instruction cache 16kB, VIPT, 2-way, linesize 16 bytes.
Primary data cache 8kB, 2-way, VIPT, no aliases, linesize 16 bytes
NR_IRQS:128
PID hash table entries: 64 (order: 6, 256 bytes)
console [ttyS0] enabled
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 13292k/16384k available (2242k kernel code, 3092k reserved, 418k data, 136k init, 0k highmem)
Calibrating delay loop… 199.16 BogoMIPS (lpj=398336)
Mount-cache hash table entries: 512
net_namespace: 528 bytes
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
Switched to high resolution mode on CPU 0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
NET: Registered protocol family 1
Registering mini_fo version $Id$
msgmni has been set to 25
alg: No test for lzma (lzma-generic)
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
serial8250: ttyS0 at MMIO 0xb8000300 (irq = 3) is a 16550A
serial8250: ttyS1 at MMIO 0xb8000400 (irq = 3) is a 16550A
serial8250.0: ttyS0 at MMIO 0xb8000300 (irq = 3) is a 16550A
serial8250.0: ttyS1 at MMIO 0xb8000400 (irq = 3) is a 16550A
b44.c:v2.0
eth0: Broadcom 44xx/47xx 10/100BaseT Ethernet 00:14:bf:e1:da:dd
BCM47xx Watchdog Timer enabled (30 seconds, nowayout)
TCP westwood registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
Sending DHCP requests ., OK
IP-Config: Got DHCP answer from 168.0.0.2, my address is 168.0.0.139
IP-Config: Complete:
device=eth0, addr=168.0.0.139, mask=255.255.255.0, gw=168.0.0.2,
host=168.0.0.139, domain=workgroup, nis-domain=(none),
bootserver=168.0.0.2, rootserver=168.0.0.2, rootpath=
Looking up port of RPC 100003/2 on 168.0.0.2
Looking up port of RPC 100005/1 on 168.0.0.2
VFS: Mounted root (nfs filesystem) on device 0:11.
Freeing unused kernel memory: 136k freed
INIT: version 2.86 booting
Algorithmics/MIPS FPU Emulator v1.5
mdev requires a mounted procfs, not started.
Setting up IP spoofing protection: FAILED.
Configuring network interfaces… ifup: interface lo already configured
ifup: interface vlan0 already configured
ifup: interface vlan1 already configured
INIT: Entering runlevel: 5
/etc/rc5.d/S10dropbear: line 29: can’t open /proc/mounts: no such file
Starting Dropbear SSH server: dropbear.
Starting syslogd/klogd: done

168.0.0.139 login: root
~ #

Posted in Uncategorized | Leave a comment

openembedded kernel for wrt54gs v4 is working!!!

Monday, June 22, 2009, 03:29 AM -

it finally booted!!!
I spent a lot of hours looking for that could cause that kind of error:
boot -elf -tftp 168.0.0.2:vmlinux
Loader:elf Filesys:tftp Dev:eth0 File:168.0.0.2:vmlinux Options:(null)
Loading: 0×80001000/3309436 Failed.
Could not load 168.0.0.2:vmlinux: Section would load outside available DRAM
*** command status = -17

the first step was to use the default defconfig…it made the the error go away for the .text section but it would return for another section.

Then I used openwrt’s CFLAGS…and it wotked…

I had to use ELF because the others format wouldn’t load(srecords and binary/raw)

here’s the first boot:

CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: Thu Sep 22 15:03:49 CST 2005 (root@localhost.localdomain)
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.

Initializing Arena
Initializing Devices.

No DPN
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 3.90.37.0
CPU type 0×29008: 200MHz
Total memory: 16384 KBytes

Total memory used by CFE: 0×80300000 – 0x803A3620 (669216)
Initialized Data: 0×80339530 – 0x8033BC40 (10000)
BSS Area: 0x8033BC40 – 0x8033D620 (6624)
Local Heap: 0x8033D620 – 0x803A1620 (409600)
Stack Area: 0x803A1620 – 0x803A3620 (8192)
Text (code) segment: 0×80300000 – 0×80339530 (234800)
Boot area (physical): 0x003A4000 – 0x003E4000
Relocation Factor: I:00000000 – D:00000000

Boot version: v3.6
The boot is CFE

mac_init(): Find mac [00:14:BF:E1:DA:DD] in location 1
Nothing…

eou_key_init(): Find key pair in location 0
The eou device id is same
The eou public key is same
The eou private key is same
Device eth0: hwaddr 00-14-BF-E1-DA-DD, ipaddr 192.168.1.1, mask 255.255.255.0
gateway not set, nameserver not set
Reading :: Failed.: Interrupted
CFE> ^C
CFE> ifconfig eth0 -auto
Device eth0: hwaddr 00-14-BF-E1-DA-DD, ipaddr 168.0.0.139, mask 255.255.255.0
gateway 168.0.0.2, nameserver 168.0.0.2, domain workgroup
*** command status = 0
CFE> boot -tftp -elf 168.0.0.2:vmlinux-2.6.30
Loader:elf Filesys:tftp Dev:eth0 File:168.0.0.2:vmlinux-2.6.30 Options:(null)
Loading: 0×80001000/2691584 0×80292200/128608 Entry at 0×80005490
Closing network.
Starting program at 0×80005490
Linux version 2.6.30 (embedded@port4) (gcc version 4.2.4) #1 Mon Jun 22 04:24:02 CEST 2009
CPU revision is: 00029008 (Broadcom BCM3302)
ssb: Core 0 found: ChipCommon (cc 0×800, rev 0x0E, vendor 0×4243)
ssb: Core 1 found: Fast Ethernet (cc 0×806, rev 0×09, vendor 0×4243)
ssb: Core 2 found: MIPS 3302 (cc 0×816, rev 0×06, vendor 0×4243)
ssb: Core 3 found: USB 1.1 Host (cc 0×817, rev 0×02, vendor 0×4243)
ssb: Core 4 found: MEMC SDRAM (cc 0x80F, rev 0×01, vendor 0×4243)
ssb: Core 5 found: IEEE 802.11 (cc 0×812, rev 0×09, vendor 0×4243)
ssb: Core 6 found: Roboswitch (cc 0x81C, rev 0×02, vendor 0×4243)
ssb: Initializing MIPS core…
ssb: core 0×0800, irq : 2(S) 3* 4 5 6 D I
ssb: core 0×0806, irq : 2(S) 3 4* 5 6 D I
ssb: core 0×0816, irq : 2(S) 3 4 5* 6 D I
ssb: core 0×0817, irq : 2(S) 3 4 5 6* D I
ssb: core 0x080f, irq : 2(S) 3 4 5 6 D I*
ssb: core 0×0812, irq : 2(S)* 3 4 5 6 D I
ssb: core 0x081c, irq : 2(S) 3 4 5 6 D I*
ssb: set_irq: core 0×0806, irq 4 => 4
ssb: set_irq: core 0×0816, irq 5 => 2
ssb: set_irq: core 0×0812, irq 2 => 5
ssb: after irq reconfiguration
ssb: core 0×0800, irq : 2(S) 3* 4 5 6 D I
ssb: core 0×0806, irq : 2(S) 3 4* 5 6 D I
ssb: core 0×0816, irq : 2(S)* 3 4 5 6 D I
ssb: core 0×0817, irq : 2(S) 3 4 5 6* D I
ssb: core 0x080f, irq : 2(S) 3 4 5 6 D I*
ssb: core 0×0812, irq : 2(S) 3 4 5* 6 D I
ssb: core 0x081c, irq : 2(S) 3 4 5 6 D I*
ssb: Sonics Silicon Backplane found at address 0×18000000
Serial init done.
Determined physical RAM map:
memory: 01000000 @ 00000000 (usable)
Initrd not found or empty – disabling initrd
Zone PFN ranges:
Normal 0×00000000 -> 0×00001000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0×00000000 -> 0×00001000
On node 0 totalpages: 4096
free_area_init_node: node 0, pgdat 80271710, node_mem_map 802b3000
Normal zone: 32 pages used for memmap
Normal zone: 0 pages reserved
Normal zone: 4064 pages, LIFO batch:0
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 4064
Kernel command line: root=/dev/nfs rw ip=dhcp nfsroot=168.0.0.2:/home/embedded/oetmp_wrt54oe/rootfs/micro-base-image console=ttyS0,115200 debug
Primary instruction cache 16kB, VIPT, 2-way, linesize 16 bytes.
Primary data cache 8kB, 2-way, VIPT, no aliases, linesize 16 bytes
NR_IRQS:128
PID hash table entries: 64 (order: 6, 256 bytes)
console [ttyS0] enabled
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 13476k/16384k available (2111k kernel code, 2908k reserved, 390k data, 128k init, 0k highmem)
Calibrating delay loop… 199.16 BogoMIPS (lpj=398336)
Mount-cache hash table entries: 512
net_namespace: 528 bytes
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
Switched to high resolution mode on CPU 0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY) ? 2001-2006 Red Hat, Inc.
msgmni has been set to 26
alg: No test for lzma (lzma-generic)
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
serial8250: ttyS0 at MMIO 0xb8000300 (irq = 3) is a 16550A
serial8250: ttyS1 at MMIO 0xb8000400 (irq = 3) is a 16550A
serial8250.0: ttyS0 at MMIO 0xb8000300 (irq = 3) is a 16550A
serial8250.0: ttyS1 at MMIO 0xb8000400 (irq = 3) is a 16550A
b44.c:v2.0
eth0: Broadcom 44xx/47xx 10/100BaseT Ethernet 00:14:bf:e1:da:dd
flash init: 0x1c000000 0×02000000
Physically mapped flash: Found 1 x16 devices at 0×0 in 16-bit bank
Physically mapped flash: Found an alias at 0×400000 for the chip at 0×0
Physically mapped flash: Found an alias at 0×800000 for the chip at 0×0
Physically mapped flash: Found an alias at 0xc00000 for the chip at 0×0
Physically mapped flash: Found an alias at 0×1000000 for the chip at 0×0
Physically mapped flash: Found an alias at 0×1400000 for the chip at 0×0
Physically mapped flash: Found an alias at 0×1800000 for the chip at 0×0
Physically mapped flash: Found an alias at 0x1c00000 for the chip at 0×0
Intel/Sharp Extended Query Table at 0×0035
Using auto-unlock on power-up/resume
cfi_cmdset_0001: Erase suspend on write enabled
erase region 0: offset=0×0,size=0×2000,blocks=8
erase region 1: offset=0×10000,size=0×10000,blocks=63
Flash device: 0×400000 at 0x1fc00000
bootloader size: 262144
Creating 4 MTD partitions on “Physically mapped flash”:
0×000000000000-0×000000040000 : “cfe”
0×000000040000-0x0000003f0000 : “linux”
0x0000000bb000-0x0000003f0000 : “rootfs”
mtd: partition “rootfs” doesn’t start on an erase block boundary — force read-only
mtd: partition “rootfs” set to be root filesystem
mtd: partition “rootfs_data” created automatically, ofs=1E560000, len=FFFFFFFFE1E90000
0x00001e560000-0x0000003f0000 : “rootfs_data”
mtd: partition “rootfs_data” is out of reach — disabled
0x0000003f0000-0×000000400000 : “nvram”
BCM47xx Watchdog Timer enabled (30 seconds, nowayout)
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Cannot open root device “nfs” or unknown-block(0,255)
Please append a correct “root=” boot option; here are the available partitions:
1f00 256 mtdblock0 (driver?)
1f01 3776 mtdblock1 (driver?)
1f02 3284 mtdblock2 (driver?)
1f04 64 mtdblock4 (driver?)
Kernel panic – not syncing: VFS: Unable to mount root fs on unknown-block(0,255)

it panics because I used openwrt’s defconfig that doesn’t include NFS

Posted in Uncategorized | Leave a comment

wrt54gs v4 serial adaptor is working

I finally with help in ##electronics made my serial adapter work
it was a capactior that was connected on pin 5 instead of pin6 of the max3232…
The printed schematics made me make this error because I took the 6 for a 5…but when you zoom on the schematics on your computer you can see that it’s a 6.

I’ll post a howto on openwrt’s wiki soon.

enjoy:

# picocom -b 115200 -f x /dev/ttyUSB0
picocom v1.4

port is : /dev/ttyUSB0
flowcontrol : xon/xoff
baudrate is : 115200
parity is : none
databits are : 8
escape is : C-a
noinit is : no
noreset is : no
nolock is : no
send_cmd is : ascii_xfr -s -v -l10
receive_cmd is : rz -vv

Terminal ready

CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: Thu Sep 22 15:03:49 CST 2005 (root@localhost.localdomain)
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.

Initializing Arena
Initializing Devices.

No DPN
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 3.90.37.0
CPU type 0×29008: 200MHz
Total memory: 16384 KBytes

Total memory used by CFE: 0×80300000 – 0x803A3620 (669216)
Initialized Data: 0×80339530 – 0x8033BC40 (10000)
BSS Area: 0x8033BC40 – 0x8033D620 (6624)
Local Heap: 0x8033D620 – 0x803A1620 (409600)
Stack Area: 0x803A1620 – 0x803A3620 (8192)
Text (code) segment: 0×80300000 – 0×80339530 (234800)
Boot area (physical): 0x003A4000 – 0x003E4000
Relocation Factor: I:00000000 – D:00000000

Boot version: v3.6
The boot is CFE

mac_init(): Find mac [00:14:BF:E1:DA:DD] in location 1
Nothing…

eou_key_init(): Find key pair in location 0
The eou device id is same
The eou public key is same
The eou private key is same
Device eth0: hwaddr 00-14-BF-E1-DA-DD, ipaddr 192.168.1.1, mask 255.255.255.0
gateway not set, nameserver not set
Reading :: Failed.: Timeout occured
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
Loading: .. 3760 bytes read
Entry at 0×80001000
Closing network.
Starting program at 0×80001000
CPU revision is: 00029008
Primary instruction cache 16kB, physically tagged, 2-way, linesize 16 bytes.
Primary data cache 8kB, 2-way, linesize 16 bytes.
Linux version 2.4.35.4 (nbd@baustelle) (gcc version 3.4.6 (OpenWrt-2.0)) #51 Sat Feb 14 23:44:13 CET 2009
Setting the PFC to its default value
Determined physical RAM map:
memory: 01000000 @ 00000000 (usable)
On node 0 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200
CPU: BCM5352 rev 0 at 200 MHz
Using 100.000 MHz high precision timer.
Calibrating delay loop… 199.47 BogoMIPS
Memory: 14260k/16384k available (1425k kernel code, 2124k reserved, 100k data, 84k init, 0k highmem)
Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
Inode cache hash table entries: 1024 (order: 1, 8192 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
Checking for ‘wait’ instruction… unavailable.
POSIX conformance testing by UNIFIX
PCI: no core
PCI: Fixing up bus 0
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Registering mini_fo version $Id$
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0×1
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
squashfs: version 3.0 (2006/03/15) Phillip Lougher
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0xb8000300 (irq = 3) is a 16550A
ttyS01 at 0xb8000400 (irq = 3) is a 16550A
b44.c:v0.93 (Mar, 2004)
eth0: Broadcom 47xx 10/100BaseT Ethernet 00:14:bf:e1:da:dd
cfi_cmdset_0001: Erase suspend on write enabled
Using word write method
Flash device: 0×400000 at 0x1c000000
bootloader size: 262144
Physically mapped flash: Filesystem type: squashfs, size=0x1814cb
Creating 5 MTD partitions on “Physically mapped flash”:
0×00000000-0×00040000 : “cfe”
0×00040000-0x003f0000 : “linux”
0x000bb000-0×00240000 : “rootfs”
mtd: partition “rootfs” doesn’t start on an erase block boundary — force read-only
0x003f0000-0×00400000 : “nvram”
0×00240000-0x003f0000 : “rootfs_data”
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 2048)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: Ethernet Bridge 008 for NET4.0
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 84k freed
Algorithmics/MIPS FPU Emulator v1.5
mount: mounting sysfs on /sys failed: No such device
mount: mounting devfs on /dev failed: Device or resource busy
- preinit -
Press CTRL-C for failsafe
diag: Detected ‘Linksys WRT54G/GS/GL’
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
roboswitch: Probing device eth0: found!
switch-robo 5084 0 (unused)
switching to jffs2
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs
- init -
jffs2.bbc: SIZE compression mode activated.
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
eth0.0: dev_set_promiscuity(master, 1)
device eth0 entered promiscuous mode
device eth0.0 entered promiscuous mode
br-lan: port 1(eth0.0) entering learning state
br-lan: port 1(eth0.0) entering forwarding state
br-lan: topology change detected, propagating
br-lan: port 1(eth0.0) entering disabled state
br-lan: port 1(eth0.0) entering learning state
br-lan: port 1(eth0.0) entering forwarding state
br-lan: topology change detected, propagating
PCI/DMA
wl0: wlc_attach: chiprev 0 coreunit 0 corerev 9 cccap 0x4787aa maccap 0×0 band 2.4G, phy_type 2 phy_rev 7 ana_rev 2
wl0: Broadcom BCM4320 802.11 Wireless Controller 4.150.10.5
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2002 Netfilter core team
ip_conntrack version 2.1 (5953 buckets, 5953 max) – 360 bytes per conntrack
ipt_recent v0.3.1: Stephen Frost <sfrost@snowman.net>. http://snowman.net/projects/ipt_recent/
IPP2P v0.8.1_rc1 loading
imq driver loaded.
ipt_time loading

update:
here’s an image of the serial adaptor:

Posted in Uncategorized | Leave a comment

emacs for openembedded again

Wednesday, May 13, 2009, 10:03 PM -

emacs-x11 built sucessfully with qemu-native-0.10.3 that means that they integrated the patches from qemu-arm necessary to build emacs-x11…
I’ll merge my working emacs recipe soon

Posted in Uncategorized | Leave a comment

JavaME

Friday, April 24, 2009, 03:25 PM -

Thanks to midpath we can now write applications in java-ME+MIDP+C(L)DC
for proprietary phones with a free SDK…but not only…we can also run them on free computers,phones or others devices…
For the SDK the tutorial is at:
http://midpath.thenesis.org/bin/view/Main/PHONE_SDK
For the running the applications on your desktop computer just unpack midpath in a directory,go in the bin folder ,and run midpath-midlet_launcher.sh /path/of/the/jar
if you are on an embedded device:
if you run busybox change the following lines:
if [ ! $MIDPATH_HOME ]; then
MIDPATH_HOME=$(pwd)/..
fi

to:

#if [ ! $MIDPATH_HOME ]; then
MIDPATH_HOME=$(pwd)/..
#fi

if you have cacao change the following line:
JAVA_CMD=java-cdc
in:
JAVA_CMD=cacao

then install cacao,classpath,classpath-gtk and run midpath-midlet_launcher.sh -jar /path/of/the/jar.
you realy need to be in the bin folder since MIDPATH_HOME is set to a location relative to the bin folder

Posted in Uncategorized | Leave a comment

pma430: toolchain sucessfully changed

Wednesday, April 15, 2009, 11:20 PM -

I’ve sucessfully made an chrootfs for the pma430,with openembedded,with a recent toolchain.
As recent glibc require nptl(native posix thread library),and that nptl is avaliable only for 2.6 kernel…I used uclibc(I didn’t try eglibc).
using uclibc also means that you loose the compatibility with all existing applications…so existing applications must be recompiled in order to work with this chrootfs(this is a problem if you don’t have the sources of the application)
so I will have to ask for the sources of the port of mplayer(the author said on his website that he would give you the sources if you write him a mail)

here’s distro config:
#this is a special version of angstrom for legacy (e.g. kernel 2.4) software
# that means:
# * no udev
# * no sysfs
# * no EABI for ARM

require conf/distro/angstrom-2008.1.conf

TARGET_ARCH = “arm”
TARGET_OS = “linux-uclibc”
TARGET_FPU_arm = “hard”
ARM_ABI = “oabi”

#IPKGBUILDCMD = “ipkg-build -c -o 0 -g 0″
TARGET_CC_ARCH = “-march=armv4″
FULL_OPTIMIZATION = “-fexpensive-optimizations -fomit-frame-pointer -O2″
PACKAGE_ARCHS += ” arm-oabi”
PREFERRED_VERSION_linux-libc-headers = “2.4.19″
ANGSTROMLIBC = “uclibc”

and here’s the machine config:
#@TYPE: Machine
#@NAME: PMA430
#@DESCRIPTION: Machine configuration for the PMA430

TARGET_ARCH = “arm”
TARGET_OS = “linux”
TARGET_FPU = “hard”
ARM_ABI = “oabi”

PREFERRED_PROVIDER_virtual/kernel = “linux-pma430″

MACHINE_FEATURES = “kernel24 screen touchscreen hotplug wifi usbhost usbgadget”

require conf/machine/include/tune-arm920t.inc

the others packages are inside my openembedded repository.

Posted in Uncategorized | Leave a comment