• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: [1]
1  General Category / General Discussion / ubuntu: apt-get dist-upgrade makes stoping! on: June 05, 2009, 11:15:26 PM
after dist-upgrade,my pogoplug can't running,the following is serial information,who can tell me what caused it, appreciate it!
by the way I use NFS as my rootfs.


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0
Using egiga0 device
TFTP from server 192.168.0.8; our IP address is 192.168.0.16
Filename 'uImage'.
Load address: 0x2000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ##########################################
done
Bytes transferred = 2207224 (21adf8 hex)
## Booting image at 02000000 ...
   Image Name:   Linux-2.6.30-rc6
   Created:      2009-06-01  15:16:36 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2207160 Bytes =  2.1 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.30-rc6 (victor@victor-desktop) (gcc version 4.2.1) #3 PREEMPT Mon Jun 1 23:16:12 CST 2009
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Marvell SheevaPlug Reference Board
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: console=ttyS0,115200 mtdparts=nand_flash:0x100000@0x000000(u-boot),0x400000@0x100000(uImage),x01f800000@0x500000(rootfs) rw root=/dev/nfs rw nfsroot=192.168.0.8:/victor/ubuntu ip=192.168.0.16:192.168.0.8:::DB88FXX81:eth0:none
NR_IRQS:114
PID hash table entries: 1024 (order: 10, 4096 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB = 256MB total
Memory: 254208KB available (4076K code, 952K data, 116K init, 0K highmem)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 520 bytes
NET: Registered protocol family 16
Kirkwood: MV88F6281-A0, TCLK=200000000.
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.
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
cfg80211: Using static regulatory domain info
cfg80211: Regulatory domain: US
        (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
        (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
        (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
cfg80211: Calling CRDA for country: US
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
NET: Registered protocol family 1
JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
msgmni has been set to 497
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
loop: module loaded
Driver 'sd' needs updating - please use bus_type methods
MV-643xx 10/100/1000 ethernet driver version 1.4
mv643xx_eth smi: probed
net eth0: port 0 with MAC address 00:50:43:a6:20:1d
libertas_sdio: Libertas SDIO driver
libertas_sdio: Copyright Pierre Ossman
NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit)
Scanning device for bad blocks
mtd: partition size too small (0)
Creating 3 MTD partitions on "orion_nand":
0x000000000000-0x000000100000 : "u-boot"
0x000000100000-0x000000500000 : "uImage"
0x000000500000-0x000020000000 : "root"
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
orion-ehci orion-ehci.0: Marvell Orion EHCI
orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
mice: PS/2 mouse device common for all mice
rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
i2c /dev entries driver
Linux video capture interface: v2.00
zc0301: V4L2 driver for ZC0301[P] Image Processor and Control Chip v1:1.10
usbcore: registered new interface driver zc0301
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v0.1.0)
mmc0: mvsdio driver initialized, lacking card detect (fall back to polling)
mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
oprofile: using timer interrupt.
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
lib80211: common routines for IEEE802.11 drivers
rtc-mv rtc-mv: setting system clock to 2011-02-20 19:00:18 UTC (1298228418)
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
     device=eth0, addr=192.168.0.16, mask=255.255.255.0, gw=255.255.255.255,
     host=DB88FXX81, domain=, nis-domain=(none),
     bootserver=192.168.0.8, rootserver=192.168.0.8, rootpath=
Looking up port of RPC 100003/2 on 192.168.0.8
eth0: link up, 100 Mb/s, full duplex, flow control disabled
Looking up port of RPC 100005/1 on 192.168.0.8
VFS: Mounted root (nfs filesystem) on device 0:13.
Freeing init memory: 116K
 * Filesystem type 'fusectl' is not supported. Skipping mount.
[ OK ]ting preliminary keymap...       
[ OK ]rting kernel event manager...       
 * Loading hardware drivers...        udevadm trigger is not permitted while udev is unconfigured.
[ OK ]ding kernel modules...         * Loading manual drivers...       
[ OK ]ting kernel variables (/etc/sysctl.conf)...       
[ OK ]ting kernel variables (/etc/sysctl.d/10-console-messages.conf)...       
 * Setting kernel variables (/etc/sysctl.d/10-network-security.conf)...        error: "net.ipv4.tcp_syncookies" is an unknown key
[fail]
[ OK ]ivating swap...       
[ OK ]rting early crypto disks...       
[ OK ]rting remaining crypto disks...       
 * Checking file systems...        fsck 1.41.4 (27-Jan-2009)
[ OK ]
[fail]nting local filesystems...       
[ OK ]ivating swapfile swap...       
[fail]figuring network interfaces...       
[ OK ]rting system log daemon...       
[ OK ]rting kernel log daemon...       
 * Starting OpenBSD Secure Shell server sshd        PRNG is not seeded
[fail]
[ OK ]rting Samba daemons       
[ OK ]rting periodic command scheduler crond       
2  Hardware and U-Boot firmware / Hardware / mv88f6281 cpu is too hot on: May 29, 2009, 07:18:40 AM
to marvell engineer,I have a pogoplug on my hand,and find the big radiator panel very hot in the box,if  run long time,will it be problem?
what about you,other guys?
3  Hardware and U-Boot firmware / Hardware / success to control green led and red led which belong to pogoplug on: May 29, 2009, 07:09:46 AM
Hi,guys,after hacking kernel,I write a driver for tow green leds and two red leds, hope it helpful.
tested them under linux-2.6.30-rc6,and masked leds config in kirkwood_defconfig file,located in arch/arm/configs/
like this:
# CONFIG_MEMSTICK is not set
# CONFIG_ACCESSIBILITY is not set
CONFIG_NEW_LEDS=no
CONFIG_LEDS_CLASS=no

#
# LED drivers
#
# CONFIG_LEDS_PCA9532 is not set
CONFIG_LEDS_GPIO=no
CONFIG_LEDS_GPIO_PLATFORM=no
# CONFIG_LEDS_LP5521 is not set
# CONFIG_LEDS_PCA955X is not set
# CONFIG_LEDS_DAC124S085 is not set
# CONFIG_LEDS_BD2802 is not set

#
# LED Triggers
#
CONFIG_LEDS_TRIGGERS=no
CONFIG_LEDS_TRIGGER_HEARTBEAT=no
# CONFIG_LEDS_TRIGGER_BACKLIGHT is not set
CONFIG_LEDS_TRIGGER_DEFAULT_ON=no
4  Hardware and U-Boot firmware / U-Boot stuff / openOCD debug with console? on: May 27, 2009, 10:51:57 PM
Hi,Guys,I see someone talk about debugging with ftdi,but I directly seal a serial transiver to connect my board  with my pc, need no usb2serial cabale,how to config openOCD?
5  Linux Stuff / Kernel / how to write a driver to control pogoplug'led? on: May 24, 2009, 06:51:16 AM
Hi,guys,I use linux-2.6.30.rc6 kernel source,and this version include leds class driver,but I just driver leds using char driver, class driver is complex,more depency, and confuse me,I like directly driver leds by ioctl function,simply.
     I try to write a driver for leds this weekend,and steps as following:
step 1, change kirkwood_defconfig file about led like this

CONFIG_NEW_LEDS=no
CONFIG_LEDS_CLASS=no

#
# LED drivers
#
# CONFIG_LEDS_PCA9532 is not set
CONFIG_LEDS_GPIO=no
CONFIG_LEDS_GPIO_PLATFORM=no
# CONFIG_LEDS_LP5521 is not set
# CONFIG_LEDS_PCA955X is not set
# CONFIG_LEDS_DAC124S085 is not set
# CONFIG_LEDS_BD2802 is not set

#
# LED Triggers
#
CONFIG_LEDS_TRIGGERS=no
CONFIG_LEDS_TRIGGER_HEARTBEAT=no
# CONFIG_LEDS_TRIGGER_BACKLIGHT is not set
CONFIG_LEDS_TRIGGER_DEFAULT_ON=no

step 2, write a driver for driving leds,mainly ioctl function in driver,like this,

static int globalmem_ioctl(struct inode *inodep, struct file *filp, unsigned
  int cmd, unsigned long arg)
{
    int ret=0;

  switch (cmd)
  {

       case LED_OF:
       case LED_ON:
     if (arg > GPIO_MAX) {
         return -EINVAL;
      }
     ret=gpio_direction_output(arg,cmd);//arg is pin number,rang frome 0 to GPIO_MAX-1=50-1
     break;   
   case GPIO_REQUEST:
     ret=gpio_request(arg, GPIO_REQUEST+0x30);
     break;
    default:
      ret =  - EINVAL;
  }
  return ret;
}

step 3,test my driver,

int main(int argc, char **argv)
{
   int i;
   int fd;
   char c;
   int rt=0;
   char record[IO_MAXNUM];

   fd = open("/dev/led_drv", 0);
   if (fd < 0)
   {
      perror("Failed to open leds");
      exit(1);
   }


      for(i=0;i<GPIO_MAX;i++)
      {
         rt=ioctl(fd, 1,  i); 
         if(rt!=0)
         {
            printf("GPIO%d request failure,continue next.",i);
            continue;
         }
         else { printf("GPIO%d request sucess.",i); getchar();}              
         
                                  }
                 close(fd);
                 return 0;
}

result:rt=ioctl(fd, 1,  i); return not 0,which should be caused by  ret=gpio_direction_output(arg,cmd);in driver,but why?
how to control GPIO,how to write GPIO register?

any body point me ? thanks.
6  Linux Stuff / Kernel / Re: kernel uncompress ............... stoping on: May 18, 2009, 07:54:58 AM
Thank you for your pointing!
7  Linux Stuff / Kernel / Re: kernel uncompress ............... stoping on: May 17, 2009, 04:43:33 AM
I do it as you said,but arise same issue, my rootfs is mounted by nfs ,will it cause the issue?who did experience it ?point me,thanks.

CE>> setenv arcNumber 2097                                                                                                          
CE>> setenv mainlineLinux yes                                                                                                       >
CE>> tftp 0x2000000 uImage_rc5                                                                                                      |
Using egiga0 device
TFTP from server 192.168.0.8; our IP address is 192.168.0.16                                                                        '
Filename 'uImage_rc5'.                                                                                                              ?
Load address: 0x2000000                                                                                                             
Loading: #################################################################
         #################################################################                                                          ?
         #################################################################                                                          
         #################################################################                                                          `
         #################################################################                                                          ?
         #################################################################                                                          
         #################################################################                                                          ?
         ####################################################                                                                       |
done                                                                                                                                <
Bytes transferred = 2594708 (279794 hex)
CE>> boot
## Booting image at 02000000 ...
   Image Name:   Linux-2.6.30-rc5                                                                                                   ?
   Created:      2009-05-12  23:02:21 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)                                                                              @
   Data Size:    2594644 Bytes =  2.5 MB                                                                                            ?
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...                                                                                                                 /

Uncompressing Linux.....................................................
8  Linux Stuff / Kernel / kernel uncompress ............... stoping(resolved) on: May 16, 2009, 09:31:50 PM
today,test sheeva-2.6.30-rc4-uImage and go into trouble.
I want to know new uImage need new u-boot to boot it, anybody point me in the right direction? thanks!



CE>> tftp 0x2000000 sheeva-2.6.30-rc4-uImage
Using egiga0 device
TFTP from server 192.168.0.8; our IP address is 192.168.0.16
Filename 'sheeva-2.6.30-rc4-uImage'.
Load address: 0x2000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ########################
done
Bytes transferred = 2452024 (256a38 hex)
CE>> boot
## Booting image at 02000000 ...
   Image Name:   Linux-2.6.30-rc4
   Created:      2009-05-04   4:42:55 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2451960 Bytes =  2.3 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux...

nothing forever:(

u-boot information as following,and nerver change it from comes to me.

U-Boot 1.1.4 (Mar 18 2009 - 16:11:55) Cloud Engines (3.4.16)

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 00690D60

Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM Total size 256MB  16bit width
Flash:  0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:512 MB

CPU : Marvell Feroceon (Rev 1)
CLOUD ENGINES BOARD: PP_GTI:3.0

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0
9  Linux Stuff / Kernel / Re: why are Console characters changed to be unrecognized?(solved) on: May 16, 2009, 08:45:56 PM
My god !I didn't notice st232 need 5V supply.
I  replace it with max3232 chip ,that's ok Smiley
10  Linux Stuff / Kernel / Re: why are Console characters changed to be unrecognized? on: May 16, 2009, 06:53:46 PM
SecureCRT 4.1,minicom,hypertiminal,all are not ok,maybe there is a hardware join issue?
11  Linux Stuff / Kernel / why are Console characters changed to be unrecognized?(solved) on: May 16, 2009, 08:57:52 AM
Hi,guys,when i begin debug the board ,characters from uart  displayed on the console  is not recognized,who can tell me  how to resolve it,i will appreciate Smiley
charecters on console as following(photo in attach ):

Aq#!09:03:252  '.                          0.14 (hu
mvudioCodeCEGE`2rror whilEbEA@ALg register
IdCLAudiooDECNA`0 Error -     NfALA@irrus
                                             ogICC@A``ev ID!
`ror - annOdANA`Aalize auDIODECO@Ar.at addrEcc= pDD<6>ALSA devICEHAc`0
AbfEHHmv88fx_snD
                 @`iver
CeBACregisterED
NET:EGAc`A`Ad protocoLFAMAHq1
2AGAstered prOdOCOHDAmily 17
OLDig: GuessINGNA`IAsk 255.255"%%      IP-Config:OM`HA`e:
@AdAce=eth0
           ADDb9!12.168.0.16
                            IAcC=255.255.25% , gw=255.25%"!!
                                                             55,
@Ost=DB888!
              @OIAin=, nis-DOMAAN9Lone),
@Ootserver=19"!&0
                  .8, rootcEbfAb9!92.168.0.`ootpath=
md: ... AutObeNNE.ID arrAyc
B`cking e``ort of !    #2 on 192.!60 0       eth0:LANCap, fullDe`HAp, speed1 
OaLted rooNFcFAHAsystem). !!on 192.168 0        VF:
FbAAAng initmEMObq2! 4K
iNIdc`A`ted: usyOpf!
"&!1025:17          '.0 (2008-0"
c`A``ing pid 28
                ``q': '/etc/INId@`CS'
starting`ID"0tty '':BINc@
-sh-3.2# ls
LINep`C  M`bOC[0m    ;#$Iac`
;#$MDAf0m     ;# IHA@   3# Imnt !3#4msbinM
#"
Pages: [1]