Segmentation fault

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ANALYSE_THIS
    Member
    • Mar 2009
    • 50

    #1

    Segmentation fault

    my box wont flash at all i keep getting Segmentation error any ideas folks.

    copied the log below

    ?debug: DDF: Calibrating delay loop... debug: DDF: 67.79 BogoMIPS
    debug: BMon V1.0 mID 01
    debug: feID 7a gtxID 0b
    debug: fpID 5a dsID Hallenberg.com
    debug: HWrev X5 SWrev 0.81
    debug: B/Ex/Fl(MB) 32/00/08
    WATCHDOG reset enabled
    debug: autoboot aborted from terminal
    dbox2:root> boot net net net net net net net net net net
    debug:
    BOOTP/TFTP bootstrap loader (v0.3)
    debug:
    debug: Transmitting BOOTP request via broadcast
    debug: Got BOOTP reply from Server IP 192.168.0.4, My IP 192.168.0.202
    debug: Sending TFTP-request for file u-boot
    will verify ELF image, start= 0x800000, size= 140064
    verify sig: 262
    boot net: boot file has no valid signature
    Branching to 0x40000

    U-Boot 1.3.4 (Tuxbox - Hallenberg.com) (Nov 29 2008 - 23:53:59)
    CPU: PPC823ZTnnA at 67.200 MHz: 2 kB I-Cache 1 kB D-Cache
    *** Warning: CPU Core has Silicon Bugs -- Check the Errata ***
    Board: DBOX2, Nokia, BMon V1.0
    Watchdog enabled
    I2C: ready
    DRAM: 32 MB
    FLASH: 8 MB
    FB: ready
    LCD: ready
    In: serial
    Out: serial
    Err: serial
    Net: SCC ETHERNET
    BOOTP broadcast 1
    Using SCC ETHERNET device
    TFTP from server 192.168.0.4; our IP address is 192.168.0.202
    Filename 'u-boot'.
    Load address: 0x100000
    Loading: Using SCC ETHERNET device
    TFTP from server 192.168.0.4; our IP address is 192.168.0.202
    Filename 'logo-lcd'.
    Load address: 0x100000
    Loading: ##
    done
    Bytes transferred = 7680 (1e00 hex)
    BOOTP broadcast 1
    Using SCC ETHERNET device
    TFTP from server 192.168.0.4; our IP address is 192.168.0.202
    Filename 'u-boot'.
    Load address: 0x100000
    Loading: Using SCC ETHERNET device
    TFTP from server 192.168.0.4; our IP address is 192.168.0.202
    Filename 'logo-fb'.
    Load address: 0x100000
    Loading: ####################################
    done
    Bytes transferred = 179877 (2bea5 hex)
    Options:
    1: Console on null
    2: Console on ttyS0
    3: Console on framebuffer
    Select option (1-3), other keys to stop autoboot: 0
    Using SCC ETHERNET device
    TFTP from server 192.168.0.4; our IP address is 192.168.0.202
    Filename 'kernel-cdk'.
    Load address: 0x100000
    Loading: ################################################## ###############
    ################################################## ########
    done
    Bytes transferred = 627048 (99168 hex)
    Using SCC ETHERNET device
    TFTP from server 192.168.0.4; our IP address is 192.168.0.202
    Filename 'u-initrd'.
    Load address: 0x400000
    Loading: ################################################## ###############
    ##################################################
    done
    Bytes transferred = 587229 (8f5dd hex)
    .................................................. ............. done
    Un-Protected 63 sectors
    ## Booting image at 00100000 ...
    Image Name: dbox2
    Image Type: PowerPC Linux Kernel Image (gzip compressed)
    Data Size: 626984 Bytes = 612.3 kB
    Load Address: 00000000
    Entry Point: 00000000
    Verifying Checksum ... OK
    Uncompressing Kernel Image ... OK
    ## Loading RAMDisk Image at 00400000 ...
    Image Name: Ramdisk Image
    Image Type: PowerPC Linux RAMDisk Image (gzip compressed)
    Data Size: 587165 Bytes = 573.4 kB
    Load Address: 00000000
    Entry Point: 00000000
    Verifying Checksum ... OK
    Loading Ramdisk to 01f1f000, end 01fae59d ... OK
    Linux version 2.4.36.9-dbox2 (Hallenberg.com) (gcc version 3.4.6) #1 Sa 29. Nov 23:29:22 CET 2008
    On node 0 totalpages: 8192
    zone(0): 8192 pages.
    zone(1): 0 pages.
    zone(2): 0 pages.
    Kernel command line: console=ttyS0 root=/dev/ram rw ip=192.168.0.202:192.168.0.4::::ff
    Decrementer Frequency = 252000000/60
    m8xx_wdt: active wdt found (SWTC: 0xFFFF, SWP: 0x1)
    m8xx_wdt: keep-alive trigger installed (PITC: 0x12C0)
    Console: colour dummy device 80x25
    Calibrating delay loop... 66.96 BogoMIPS
    Memory: 30348k available (1048k kernel code, 324k data, 72k init, 0k highmem)
    Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
    Inode cache hash table entries: 2048 (order: 2, 16384 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: 8192 (order: 3, 32768 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
    devfs: v1.12c (20020818) Richard Gooch ([email protected])
    devfs: boot_options: 0x1
    i2c-core.o: i2c core module version 2.6.1 (20010830)
    i2c-dev.o: i2c /dev entries driver module version 2.6.1 (20010830)
    CPM UART driver version 0.04
    ttyS0 at 0x0280 is on SMC1 using BRG?ttyS1 at 0x0380 is on SMC2 using BRG2
    pty: 256 Unix98 ptys configured
    half-duplex mode enabled
    eth0: CPM ENET Version 0.2.dbox2 on SCC2, 00:50:9c:1a:b4:57
    RAMDISK driver initialized: 16 RAM disks of 3333K size 1024 blocksize
    D-Box 2 flash driver (size->0x800000 mem->0x10000000)
    D-Box 2 flash memory: Found 2 x16 devices at 0x0 in 32-bit bank
    Amd/Fujitsu Extended Query Table at 0x0040
    number of CFI chips: 1
    cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
    Creating 6 MTD partitions on "D-Box 2 flash memory":
    0x00000000-0x00020000 : "BR bootloader"
    0x00020000-0x00040000 : "FLFS (U-Boot)"
    0x00040000-0x006a0000 : "root (rootfs)"
    0x006a0000-0x00800000 : "var (jffs2)"
    0x00020000-0x00800000 : "Flash without bootloader"
    0x00000000-0x00800000 : "Complete Flash"
    Linux video capture interface: v1.00
    mice: PS/2 mouse device common for all mice
    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 2048 bind 4096)
    IP-Config: Guessing netmask 255.255.255.0
    IP-Config: Complete:
    device=eth0, addr=192.168.0.202, mask=255.255.255.0, gw=255.255.255.255,
    host=192.168.0.202, domain=, nis-domain=(none),
    bootserver=192.168.0.4, rootserver=192.168.0.4, rootpath=
    NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
    RAMDISK: Compressed image found at block 0
    Freeing initrd memory: 573k freed
    EXT2-fs warning: checktime reached, running e2fsck is recommended
    VFS: Mounted root (ext2 filesystem).
    Mounted devfs on /dev
    Freeing unused kernel memory: 72k init
    init started: BusyBox v1.13.0 (2008-11-29 23:52:02 CET
    Segmentation fault
    Segmentation fault
    Bad emulation rcS/12
    NIP: 30027754 instruction: e0d26f50 opcode: 38 A: 12 B: d C: 1d code: 3a8 rc: 0
    pte @ 0x30027754: (0xc1b6b300)->(0xc1b8c09c)->0x01b5f9e9
    RPN: 01b5f PP: 2 SPS: 1 SH: 0 CI: 0 v: 1
    Kernel VA for NIP 0xc1b5f754 pte @ 0xc1b5f754: no pmd
    Floating point exception
    Segmentation fault
    Segmentation fault

    -------------------------------------------------------------
    BootP: Got request from 00509C1AB457
    BootP: Created ARP-entry with IP: 192.168.0.202 and Mac: 00509C1AB457
    BootP: Answer to 00509C1AB457 sent
    TFTP: Sending C:\Program Files\DBOX_IFA\tftp\u-boot
    TFTP: Transfer succsessfull completed
    BootP: Got request from 00509C1AB457
    BootP: Created ARP-entry with IP: 192.168.0.202 and Mac: 00509C1AB457
    BootP: Answer to 00509C1AB457 sent
    TFTP: Sending C:\Program Files\DBOX_IFA\tftp\logo-lcd
    TFTP: Transfer succsessfull completed
    BootP: Got request from 00509C1AB457
    BootP: Created ARP-entry with IP: 192.168.0.202 and Mac: 00509C1AB457
    BootP: Answer to 00509C1AB457 sent
    TFTP: Sending C:\Program Files\DBOX_IFA\tftp\logo-fb
    TFTP: Transfer succsessfull completed
    TFTP: Sending C:\Program Files\DBOX_IFA\tftp\kernel-cdk
    TFTP: Transfer succsessfull completed
    TFTP: Sending C:\Program Files\DBOX_IFA\tftp\u-initrd
    TFTP: Transfer succsessfull completed

    any advice wud be appreciated

    thanks
  • buzzking5
    Top Poster
    • Dec 2008
    • 146

    #2
    try this

    have you tried to fxp an image to the temp folder in the box and use the remote to install the new image.

    Now if you want to flash a new image while you are connected to the dbox, put the image in the TMP file. But before you do I would back up the Service and Bouquet xml's first as this will save you time after the new image is flashed. The Service and bouquet xml's are located in the var/tuxbox/config/zapit file, highlight them and send them to your computer were you will be able to find them later. Also please flash an image that has all the AU's fixed

    Now that you have put the new image in TMP file you will need to go back to your dbox remote.

    1. Press the dbox button
    2. Select Services
    3. Select Image Upgrade/ Backup
    4. Select Flash One Partition
    5. Select Flash without Bootloader
    6. Select the Image
    7. You will be asked if you want to flash the new image, select YES and the flash will start. After it has flashed your box it will reboot.

    this is the work of some one else but hope it might help












    this is the work of some one else but hope it might help

    Comment

    • plasterer
      V.I.P. Member
      • Jun 2008
      • 1631

      #3
      Recheck your Flow controll make sure its set to
      10 and 1 half duplex and retry it
      Either the box is not accepting the flash
      Or you are not using the correct procedure to flash it .......Paul



      Go to control panel then network connections
      right click on local area connect and pick properties.
      there you will see underneath connect using....your network card
      next to this will be a configure tab click on it.
      then click on the advanced tab
      you need to look for flow control, duplex, media type or connection type
      drop the value tab arrow down and set to 10baseT_halfduplex or try automatic or autosense
      If your Happy with the Help push the Thanx button
      PAUL

      Comment

      • chroma
        V.I.P. Member
        • Feb 2009
        • 1976

        #4
        A Segfault happens when software tries to access memory that it doesnt have access to.

        A floating point error is usualy the result of an overflow (resulting in more memory being needed than had been assigned ie a string needs a DWORD instead of a WORD)

        *** Warning: CPU Core has Silicon Bugs -- Check the Errata *** indicates that the Processor has some serious defects that need to be carefully programmed around.
        In this case the CPU is from a dodgy batch of the MPC823 series revision B and the errors are numerous (6 CPU and 11 General errors documented) so if the image your flashing has not been specificaly coded with this in mind errors are highly likely.

        Everything transfered fine in your log and it tried its best to set it up for you but it had an error somewhere down the line Specificaly when the Busybox OS was initialised. So its something in the busybox initialisation causing the kernel panic, more than likely by trying to execute an instruction that aggrivates a known cpu problem.

        Best soloution i can come up with is to try different images till something works, the CPU errors are fairly common and im sure theres a coder out there whose optimised an image for the revision B processors.
        Either that or get hold of the errata and debug the image making the nessisary changes to comply.
        He who laughs last thinks slowest.

        Comment

        Working...