SECOND RSM upgrade results! please comment if ok?

17 posts / 0 new
Last post
MAZ
MAZ's picture
SECOND RSM upgrade results! please comment if ok?

Results of RSM media unit 2...finally!

seems ok not sure if the media card reader is working after uprade

as when i flashed the last step<rsmedia update w/rsupdateapp and wowwee_emjava_id>

the rsupdate file remained on the card

now to fix the volume problem!

 

here is the cap:

 

 

MAZ
MAZ's picture

MXL Bootloader for RSmedia 16MB (2007-02-09)

Manufacture ID:00C2

Device ID:22BA
Press any key for alternate boot-up options ... 00

Copying kernel from Nand Flash to RAM ...
Manu ID =000000EC Device ID =00000076 Block count =00001000
block table:08FE9388
zone table:08EE9388
scan block finished
Booting kernel ...

Linux version 2.4.18-rmk5-mx1ads-p3 (sam@estechsolution.com) (gcc version 2.95.3
20010315 (release)) #516 Wed Feb 14 16:36:08 HKT 2007
Processor: ARM/CIRRUS Arm920Tsid(wb) revision 0
Architecture: Motorola MX1ADS
On node 0 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=fe01 ro mem=16M
Console: colour dummy device 80x30
Calibrating delay loop... 98.50 BogoMIPS
Memory: 16MB = 16MB total
Memory: 14688KB available (1023K code, 316K data, 60K init)
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)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
ttySA0 at I/O 0x206000 (irq = 29) is a MX1ADS
ttySA1 at I/O 0x207000 (irq = 23) is a MX1ADS
pty: 256 Unix98 ptys configured
DMA Initializing
block: 64 slots per queue, batch=16
PPP generic driver version 2.4.1
PPP Deflate Compression module registered
PPP BSD Compression module registered
SSFDC core support installed
MX1ADS nand I/O driver installed
SSFDC Partitions
nand0 : block 0x0000-0x0049 : "Kernel" 1184 KB direct map
nand1 : block 0x004a-0x0229 : "RootDisk" 7680 KB random map
nand2 : block 0x022a-0x04a9 : "DefaultDisk" 10240 KB random map
nand3 : block 0x04aa-0x0f5a : "UserDisk" 43792 KB random map
nand4 : block 0x0f5b-0x0f7a : "WritableDisk" 512 KB random map
nand5 : block 0x0f7b-0x0f9a : "PassDisk" 512 KB random map
MX1ADS nand flash partition definitions installed
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 1024)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NetWinder Floating Point Emulator V0.95 (c) 1998-1999 Rebel.com
found bad block 0x0 -> 0x24c, block status 0xff, data status 0x0
[ 00 00 00 00 00 ff 00 00 00 00 00 00 00 00 00 00 ]
reserved: 0x00000000
data status: 0x00, block status: 0xff
addr1: 0x0000, addr2: 0x0000
ecc1: 0x00 0x00 0x00, ecc2: 0x00 0x00 0x00
found bad block 0x2d9 -> 0x2ca, block status 0x0, data status 0xff
[ ff ff ff ff ff 00 15 b3 66 66 a7 15 b3 30 f0 3f ]
reserved: 0xffffffff
data status: 0xff, block status: 0x00
addr1: 0xb315, addr2: 0xb315
ecc1: 0x30 0xf0 0x3f, ecc2: 0x66 0x66 0xa7
VFS: Mounted root (cramfs filesystem) readonly.
Freeing init memory: 60K
mx1ads_startup

BusyBox v0.60.5 (2005.11.28-10:41+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

sh: can't access tty; job control turned off
init
Using /lib/modules/mx1ads_recycle_lcd.o
HD66770 Recycle LCD drivers 132x176 Version 0.1 installed
Using /lib/modules/mx1ads_video_capture_s5k53beb.o
MXL-ADS Video Capture Module initialized
Using /lib/modules/usb_disk.o
Call ssfdc_udisk_register_partition
Call usb_disk_register
USB Device mass storage interface installed
Using /lib/modules/mx1ads_mmc.o
Date : 2005/01/06
Register usb_mmc_disk complete
MMC disk driver initialized
Using /lib/modules/mx1ads_usbd.o
MX1ADS USB Device controller glue driver installed
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Can't find ext2 filesystem on dev ssfdc(254,5).
mount: Mounting /dev/nand5 on /pw failed: Invalid argument
mount: Mounting /dev/nand5 on /pw failed: Invalid argument
mkdir: Cannot create directory `/lnk/Java': File exists
mkdir: Cannot create directory `/lnk/Music': File exists
mkdir: Cannot create directory `/lnk/Personalities': File exists
mkdir: Cannot create directory `/lnk/Photo': File exists
mkdir: Cannot create directory `/lnk/Videos': File exists
ln: /lnk/Java/Default: File exists
ln: /lnk/Java/User: File exists
ln: /lnk/Music/Wowwee: File exists
ln: /lnk/Music/User: File exists
ln: /lnk/Personalities/Wowwee: File exists
ln: /lnk/Personalities/User: File exists
ln: /lnk/Photo/Wowwee: File exists
ln: /lnk/Photo/User: File exists
ln: /lnk/Videos/Wowwee: File exists
ln: /lnk/Videos/User: File exists
umount: /mnt/sd: Invalid argument
No found Status=0x21422142
mount: Mounting /dev/mmc on /mnt/sd failed: Input/output error
SD card not exists!
Using /lib/modules/mx1ads_audio_cs42l51_dma.o
Chip ID: 1b, Chip Revision: 0
MX1ADS : AC97 driver initialized.
/bin/sh
/mnt/sd/robot.cfg exist
/lnk/robot.cfg exist
/mnt/sd/Personalities exist
/mnt/sd/Java exist
/mnt/sd/Music exist
/mnt/sd/Music/playlist exist
/mnt/sd/Music/.capdb exist
/mnt/sd/Photo exist
/mnt/sd/Photo/.capdb exist
/mnt/sd/Videos exist
/mnt/sd/Videos/.capdb exist
/mnt/sd/Application exist
/bin/sh
killall: nano-X: no process killed
killall: main_ui: no process killed
# Nano-X version 089Pre8
framebuffer ioctl not supported: 17924
NANOX: WESTERN BITMAP FONT 'helvR12' loaded
send_command_to_sunplus:Error in sending data
mx1ads_startup
UART 2 is used for Modem only
/usr/bin/robot/start_robot_mainFreeing argv
/usr/bin/robot/mediadaemonFreeing argv
/etc/emtk/emtkrc: No such file or directory
finish setting port
/etc/emtk/emtkrc: No such file or directory
/usr/bin/robot/main_uiFreeing argv
/etc/emtk/emtkrc: No such file or directory
DEBUG: volctrl_set_value: 192759 9

DEBUG: volctrl_mic_set_value: 17990
Chip version:0xa887
sh
Running lsdir_list_directory
pthread_create~~~~~~ here!
sh
USB ONLY ENABLE NAND
NANOX: WESTERN BITMAP FONT 'robot' loaded
Font file '/programs/fonts/gb-14.baf' can't be opened.
Send back audio ack cmd to sunplus 0xff, 0xf2, 0x03, 0x00, 0x00
recoverable frame level error (257)
recoverable frame level error (257)
audio data format=signed
HERE 45056

**EMTK ERROR** anim_icon_show: parent not yet realized

NANOX: WESTERN BITMAP FONT 'helvB12' loaded
read finished
Send back audio ack cmd to sunplus 0xff, 0xf2, 0x03, 0x00, 0x00
recoverable frame level error (257)
recoverable frame level error (257)
audio data format=signed
HERE 55296
read finished
Send back audio ack cmd to sunplus 0xff, 0xf2, 0x03, 0x00, 0x00
recoverable frame level error (257)
recoverable frame level error (257)
audio data format=signed
HERE 55296
read finished
Send back audio ack cmd to sunplus 0xff, 0xf2, 0x03, 0x00, 0x00
recoverable frame level error (257)
recoverable frame level error (257)
audio data format=signed
HERE 49152
read finished

MAZ
MAZ's picture

Seems as if the sd card reader on the RSM is NOT re-creating the folders etc on the card when unit is booted up with the card in place...? cannot load files etc

help?

MAZ
MAZ's picture

Just to advise when inserting the original firmare it wont read either........
EEEEEEK!!!!!!!!!!

Helibot
Helibot's picture

Hi MAZ.
>Seems as if the sd card reader on the RSM is NOT re-creating the folders etc
> on the card when unit is booted up with the card in place...? cannot load files etc
Not sure exactly what your are referring to. Please give an example. Are you referring to some of the lines in the bootdump above, if so which ones?. Or something else?
Cheers
Helibot

MAZ
MAZ's picture

Hi Helibot

I cannot load extra/alternative personalities or obtain a new dump after the upgrade

ie the reader does not work

could the upgrade have "switched it off" somehow?

checked thru all the discussions ....its not the loose head cable...etc.

The hack works tho
any ideas?

MAZ
MAZ's picture

as I said it upgraded ok

ie the dump file capture to sd before I reflashed to ver2.

so it did work!

Helibot
Helibot's picture

Hi MAZ,
OK understand now. But its not a problem I have seen before.
The bootup messages can tell us if the SD card is found and mounted. Try this:
1) Make sure you have deleted the rsupdate/rsupdateapp file from the SDCard
2) Insert the SD Card into RSMedia
3) Boot up RSMedia
4) Capture the boot up sequence via the serial hack and post it here.

The lines
mount: Mounting /dev/mmc on /mnt/sd failed: Input/output error
SD card not exists!
should change and say SD card exists

Cheers
Helibot

MAZ
MAZ's picture

Thanks Helibot

heres the latest capture:
seems that its NOT finding the the SD card....

MXL Bootloader for RSmedia 16MB (2007-02-09)

Manufacture ID:00C2

Device ID:22BA
Press any key for alternate boot-up options ... 00

Copying kernel from Nand Flash to RAM ...
Manu ID =000000EC Device ID =00000076 Block count =00001000
block table:08FE9388
zone table:08EE9388
scan block finished
Booting kernel ...

Linux version 2.4.18-rmk5-mx1ads-p3 (sam@estechsolution.com) (gcc version 2.95.3
20010315 (release)) #516 Wed Feb 14 16:36:08 HKT 2007
Processor: ARM/CIRRUS Arm920Tsid(wb) revision 0
Architecture: Motorola MX1ADS
On node 0 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=fe01 ro mem=16M
Console: colour dummy device 80x30
Calibrating delay loop... 98.50 BogoMIPS
Memory: 16MB = 16MB total
Memory: 14688KB available (1023K code, 316K data, 60K init)
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)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
ttySA0 at I/O 0x206000 (irq = 29) is a MX1ADS
ttySA1 at I/O 0x207000 (irq = 23) is a MX1ADS
pty: 256 Unix98 ptys configured
DMA Initializing
block: 64 slots per queue, batch=16
PPP generic driver version 2.4.1
PPP Deflate Compression module registered
PPP BSD Compression module registered
SSFDC core support installed
MX1ADS nand I/O driver installed
SSFDC Partitions
nand0 : block 0x0000-0x0049 : "Kernel" 1184 KB direct map
nand1 : block 0x004a-0x0229 : "RootDisk" 7680 KB random map
nand2 : block 0x022a-0x04a9 : "DefaultDisk" 10240 KB random map
nand3 : block 0x04aa-0x0f5a : "UserDisk" 43792 KB random map
nand4 : block 0x0f5b-0x0f7a : "WritableDisk" 512 KB random map
nand5 : block 0x0f7b-0x0f9a : "PassDisk" 512 KB random map
MX1ADS nand flash partition definitions installed
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 1024)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NetWinder Floating Point Emulator V0.95 (c) 1998-1999 Rebel.com
found bad block 0x0 -> 0x24c, block status 0xff, data status 0x0
[ 00 00 00 00 00 ff 00 00 00 00 00 00 00 00 00 00 ]
reserved: 0x00000000
data status: 0x00, block status: 0xff
addr1: 0x0000, addr2: 0x0000
ecc1: 0x00 0x00 0x00, ecc2: 0x00 0x00 0x00
found bad block 0x2d9 -> 0x2ca, block status 0x0, data status 0xff
[ ff ff ff ff ff 00 15 b3 66 66 a7 15 b3 30 f0 3f ]
reserved: 0xffffffff
data status: 0xff, block status: 0x00
addr1: 0xb315, addr2: 0xb315
ecc1: 0x30 0xf0 0x3f, ecc2: 0x66 0x66 0xa7
VFS: Mounted root (cramfs filesystem) readonly.
Freeing init memory: 60K
mx1ads_startup

BusyBox v0.60.5 (2005.11.28-10:41+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

sh: can't access tty; job control turned off
init
Using /lib/modules/mx1ads_recycle_lcd.o
HD66770 Recycle LCD drivers 132x176 Version 0.1 installed
Using /lib/modules/mx1ads_video_capture_s5k53beb.o
MXL-ADS Video Capture Module initialized
Using /lib/modules/usb_disk.o
Call ssfdc_udisk_register_partition
Call usb_disk_register
USB Device mass storage interface installed
Using /lib/modules/mx1ads_mmc.o
Date : 2005/01/06
Register usb_mmc_disk complete
MMC disk driver initialized
Using /lib/modules/mx1ads_usbd.o
MX1ADS USB Device controller glue driver installed
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Can't find ext2 filesystem on dev ssfdc(254,5).
mount: Mounting /dev/nand5 on /pw failed: Invalid argument
mount: Mounting /dev/nand5 on /pw failed: Invalid argument
mkdir: Cannot create directory `/lnk/Java': File exists
mkdir: Cannot create directory `/lnk/Music': File exists
mkdir: Cannot create directory `/lnk/Personalities': File exists
mkdir: Cannot create directory `/lnk/Photo': File exists
mkdir: Cannot create directory `/lnk/Videos': File exists
ln: /lnk/Java/Default: File exists
ln: /lnk/Java/User: File exists
ln: /lnk/Music/Wowwee: File exists
ln: /lnk/Music/User: File exists
ln: /lnk/Personalities/Wowwee: File exists
ln: /lnk/Personalities/User: File exists
ln: /lnk/Photo/Wowwee: File exists
ln: /lnk/Photo/User: File exists
ln: /lnk/Videos/Wowwee: File exists
ln: /lnk/Videos/User: File exists
umount: /mnt/sd: Invalid argument
No found Status=0x21422142
mount: Mounting /dev/mmc on /mnt/sd failed: Input/output error
SD card not exists!
Using /lib/modules/mx1ads_audio_cs42l51_dma.o
Chip ID: 1b, Chip Revision: 0
MX1ADS : AC97 driver initialized.
/bin/sh
/mnt/sd/robot.cfg exist
/lnk/robot.cfg exist
/mnt/sd/Personalities exist
/mnt/sd/Java exist
/mnt/sd/Music exist
/mnt/sd/Music/playlist exist
/mnt/sd/Music/.capdb exist
/mnt/sd/Photo exist
/mnt/sd/Photo/.capdb exist
/mnt/sd/Videos exist
/mnt/sd/Videos/.capdb exist
/mnt/sd/Application exist
/bin/sh
killall: nano-X: no process killed
killall: main_ui: no process killed
# Nano-X version 089Pre8
framebuffer ioctl not supported: 17924
send_command_to_sunplus:Error in sending data
NANOX: WESTERN BITMAP FONT 'helvR12' loaded
mx1ads_startup
UART 2 is used for Modem only
/usr/bin/robot/mediadaemonFreeing argv
/usr/bin/robot/start_robot_mainFreeing argv
/etc/emtk/emtkrc: No such file or directory
/etc/emtk/emtkrc: No such file or directory
finish setting port
/usr/bin/robot/main_uiFreeing argv
/etc/emtk/emtkrc: No such file or directory
DEBUG: volctrl_set_value: 19275
9 9
DEBUG: volctrl_mic_set_value: 17990
Chip version:0xa887
sh
Running lsdir_list_directory
pthread_create~~~~~~ here!
sh
USB ONLY ENABLE NAND
NANOX: WESTERN BITMAP FONT 'robot' loaded
Font file '/programs/fonts/gb-14.baf' can't be opened.
Send back audio ack cmd to sunplus 0xff, 0xf2, 0x03, 0x00, 0x00
recoverable frame level error (257)
recoverable frame level error (257)
audio data format=signed
read finished

**EMTK ERROR** anim_icon_show: parent not yet realized

NANOX: WESTERN BITMAP FONT 'helvB12' loaded
Send back audio ack cmd to sunplus 0xff, 0xf2, 0x03, 0x00, 0x00
recoverable frame level error (257)
recoverable frame level error (257)
audio data format=signed
HERE 49152
read finished

MAZ
MAZ's picture

Just a heads up
when I check "About"
it gives me the "mem free" of 488 M on the SD card....very very weird!
just cant read...........!

Helibot
Helibot's picture

Hey MAZ,
I think your SD Card is corrupted or incompatible.
If I put in a corrupted or SDCard that is too large into RSMedia I see:
umount: /mnt/sd: Invalid argument
No found Status=0x21422142
mount: Mounting /dev/mmc on /mnt/sd failed: Input/output error
SD card not exists!

Which is exactly what your robot is outputting

If I put in a OK SDCard
umount: /mnt/sd: Invalid argument
SD card exists!

So make sure your SDCard is 1G size or less.
Is the SDCard the same one as you had used before in RSMedia?
Try deleting all the files off the SDCard (in case some are corrupted).
And/Or Try reformatting the SDcard to FAT or FAT32 (you can do this on windows).
Put the blank SDcard back into RSMedia and it should recreate the correct files and directories.

>when I check "About "it gives me the "mem free"
> of 488 M on the SD card....very very weird!
That is weird, with an incorrect card in my robot I dont see this (it shows internal memory usage instead??).

Cheers
Helibot

MAZ
MAZ's picture

Helibot you GENIUS!!!!

somehow somehow the card got corrupted I replaced with a 512m card and viola!
GREAT
now its just the problem with the volune settings!
Thanks very much for all your effort much appreciated!

MAZ
MAZ's picture

# /mnt/sd/Application/rsmvolume 90
/mnt/sd/Application/rsmvolume: Permission denied

Helibot
Helibot's picture

Hi Maz,
The Permission Denied should not be happening!!
I assume that it thinks it cannot execute rsmvolume program in that directory.
Lets try some things to see if we can find whats wrong.....

Try
# ls -al /mnt/sd/Application/rsmvolume
-rwxr-xr-x 1 root root 9515 Jan 17 2012 /mnt/sd/Application/rsmvolume
The 'x's in the start of the line indicate that the file can be executed.
The root indicate the owner of the file.

Try
# whoami
root
You should always be root on RSMedia , so you should have permissions to access the rsmvolume file.

Try
# cp /mnt/sd/Application/rsmvolume /tmp
# /tmp/rsmvolume 90
set volume to 90
DEBUG: volctrl_set_value: 23130
This copies the executable file to a tmp area and then executes it from there.

Try
# ls -al /tmp/curvol
-rw-r--r-- 1 root root 4 Jan 1 00:20 /tmp/curvol
This will check if the file that holds the current volume setting is created OK at boot time

Try
# /usr/bin/robot/write_confile.dat /tmp/curvol 90
This tries to write to the file

Lastly please try
# /mnt/sd/Application/rsmvolume
#
It should return no response. Let me know if you still see permission denied.

So please try the above command sand let me know the results (at least copy and paste the results for any that dont look the same as above

Cheers
Helibot

MAZ
MAZ's picture

Thanks Helibot
will tinker over weekend..........time constraints right now and get back to you
just a question what Linux op. system to use if I REALLY want to get into robot?

Helibot
Helibot's picture

Hi Maz,
If you want to learn about how linux works and what commands you can use, then almost any linux will do. I use Ubuntu - its easy to install and use.

If you really want to get into programming the RSMedia robot by writing programs to run on the robot, then you will need to use a cross compiler. Let me know if you want to try this and I can give some more instructions.

You can also check out https://sourceforge.net/projects/rsmediadevkit/ for more ideas of what hacking/programming/features can be done with RSMedia.

Cheers
Helibot

MAZ
MAZ's picture

Absolutely Helibot!

would appreciate ANY help thanks.....just to see the serial hack in progress is amazing !
So any tips regarding the system will be great!

will advise you re; sound problem over weekend...

Cheers!