This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux: ipv6 errors while booting Linux

Other Parts Discussed in Thread: DP83640, OMAP-L138, DA8XX, PMP, OMAPL138

Tool/software: Linux

Hi there,

The thing, I have changed in the Linux kernel build are as follows:

Added Ethernet driver for DP83640 and 

But after doing this I am getting lots of errors.

Error messahe:

ipv6: disagrees about version of symbol inet_frag_kill
ipv6: Unknown symbol inet_frag_kill (err -22)
ipv6: disagrees about version of symbol __kfree_skb
ipv6: Unknown symbol __kfree_skb (err -22)
ipv6: disagrees about version of symbol tcp_splice_read
ipv6: Unknown symbol tcp_splice_read (err -22)
ipv6: disagrees about version of symbol sock_init_data
ipv6: Unknown symbol sock_init_data (err -22)
ipv6: disagrees about version of symbol tcp_v4_connect
ipv6: Unknown symbol tcp_v4_connect (err -22)
ipv6: disagrees about version of symbol sk_prot_clear_portaddr_nulls
ipv6: Unknown symbol sk_prot_clear_portaddr_nulls (err -22)
ipv6: disagrees about version of symbol neigh_lookup
ipv6: Unknown symbol neigh_lookup (err -22)
ipv6: disagrees about version of symbol xfrm_state_register_afinfo
umount: can't umount /mnt/.psplash: Device or resource busy
ipv6: Unknown symbol xfrm_state_register_afinfo (err -22)
ipv6: disagrees about version of symbol release_sock
ipv6: Unknown symbol release_sock (err -22)
ipv6: disagrees about version of symbol secpath_dup
ipv6: Unknown symbol secpath_dup (err -22)

I have not changed any thing related to ipv6. So I am not sure what is the problem. Thanks

Regards,

Mitesh

  • Hi Mitesh,
    You need again build the Network modules also. Rebuild the .ko too
  • HI there, I did run make modules.
    What else should I do? to get the network modules to rebuild?
  • Did you intsall the modules too ? I mean, was it taken into the device ?
  • Please do share the Board details, kernel config related to network etc
  • Hi there,
    I have started with the omap L138 lcdk design and using the menuconfig added driver for Dp83640
    and then just did the make uimage; make modules and make module_install..

    what would you like me to share ?
  • Changes from the lcdk config file are as follows:
    added MII PHY device driver
    CONFIG_DP83640_PHY=y

    #
    # PTP clock support
    #
    CONFIG_PTP_1588_CLOCK=y

    #
    # Networking options
    #
    CONFIG_NETWORK_PHY_TIMESTAMPING=y
  • Hi Mitesh,

    ipv6 module using the symbols exported by the kernel.
    You may also need to install the kernel (make install).

    Regards,
    Prahlad V
  • Hi Prahalad, I did do make modules_install. do you mean this? or make install ?
  • make modules_install will install all the modules, but these modules are dependent on other symbols which will be available in kernel. so kernel also need to be installed.

    so additionally you have to do "make install"
  • Oh okay, will do. What compression should be use for kernel ?
  • If it is uImage, it continues to be the same. Make sure you take updated uImage and the kernel modules(make modules_install)

  • Yes, I think I have done that. I can see when the Linux is booting the timestamp..

    Log from Linux boot :
    reading boot.scr

    ** Unable to read "boot.scr" from mmc 0:1 **
    reading uImage

    2233440 bytes read
    ## Booting kernel from Legacy Image at c0700000 ...
    Image Name: Linux-3.3.0
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 2233376 Bytes = 2.1 MiB
    Load Address: c0008000
    Entry Point: c0008000
    Verifying Checksum ... OK
    Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    Booting Linux on physical CPU 0
    Linux version 3.3.0 (miteshhiran@ubuntu) (gcc version 4.5.3 20110311 (prerelease) (GCC) ) #1 PREEMPT Fri May 12 12:24:29 BST 2017
    CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
    CPU: VIVT data cache, VIVT instruction cache
    Machine: AM18x/OMAP-L138 lcdk board
    Memory policy: ECC disabled, Data cache writeback
    BUG: mapping for 0x80000000 at 0xfffe0000 out of vmalloc space
    DaVinci da850/omap-l138/am18x variant 0x1
    Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
    Kernel command line: console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootwait ip=off
    PID hash table entries: 512 (order: -1, 2048 bytes)
    Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
    Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
    Memory: 128MB = 128MB total
    Memory: 125192k/125192k available, 5880k reserved, 0K highmem
    Virtual kernel memory layout:
    vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
    vmalloc : 0xc8800000 - 0xff000000 ( 872 MB)
    lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
    modules : 0xbf000000 - 0xc0000000 ( 16 MB)
    .text : 0xc0008000 - 0xc0429000 (4228 kB)
    .init : 0xc0429000 - 0xc0451000 ( 160 kB)
    .data : 0xc0452000 - 0xc047cd40 ( 172 kB)
    .bss : 0xc047cd64 - 0xc04999ac ( 116 kB)
    SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    NR_IRQS:245
    Console: colour dummy device 80x30
    Calibrating delay loop... 148.88 BogoMIPS (lpj=744448)
    pid_max: default: 32768 minimum: 301
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    Setting up static identity map for 0xc032afa0 - 0xc032aff8
    gpiochip_add: registered GPIOs 0 to 31 on device: DaVinci
    gpiochip_add: registered GPIOs 32 to 63 on device: DaVinci
    gpiochip_add: registered GPIOs 64 to 95 on device: DaVinci
    gpiochip_add: registered GPIOs 96 to 127 on device: DaVinci
    gpiochip_add: registered GPIOs 128 to 143 on device: DaVinci
    DaVinci: 144 gpio irqs
    print_constraints: dummy:
    NET: Registered protocol family 16
    EMAC: RMII PHY configured
    bio: create slab <bio-0> at 0
    SCSI subsystem initialized
    i2c-gpio i2c-gpio.1: using pins 20 (SDA) and 21 (SCL)
    pps_core: LinuxPPS API ver. 1 registered
    pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    PTP clock support registered
    Advanced Linux Sound Architecture Driver Version 1.0.24.
    Switching to clocksource timer0_1
    NET: Registered protocol family 2
    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    TCP established hash table entries: 4096 (order: 3, 32768 bytes)
    TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    TCP: Hash tables configured (established 4096 bind 4096)
    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
    RPC: Registered named UNIX socket transport module.
    RPC: Registered udp transport module.
    RPC: Registered tcp transport module.
    RPC: Registered tcp NFSv4.1 backchannel transport module.
    JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
    msgmni has been set to 244
    io scheduler noop registered (default)
    da8xx_lcdc da8xx_lcdc.0: GLCD: Found VGA_Monitor panel
    Console: switching to colour frame buffer device 80x30
    Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
    serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25) is a AR7
    serial8250.0: ttyS1 at MMIO 0x1d0c000 (irq = 53) is a AR7
    serial8250.0: ttyS2 at MMIO 0x1d0d000 (irq = 61) is a AR7
    console [ttyS2] enabled
    brd: module loaded
    ahci ahci: forcing PORTS_IMPL to 0x1
    ahci ahci: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl platform mode
    ahci ahci: flags: ncq sntf pm led clo only pmp pio slum part ccc
    scsi0 : ahci_platform
    ata1: SATA max UDMA/133 mmio [mem 0x01e18000-0x01e19fff] port 0x100 irq 67
    NAND device: Manufacturer ID: 0x2c, Chip ID: 0xcc (Micron NAND 512MiB 3,3V 16-bit)
    Bad block table found at page 262080, version 0x01
    Bad block table found at page 262016, version 0x01
    Creating 4 MTD partitions on "davinci_nand.1":
    0x000000000000-0x000000020000 : "u-boot env"
    0x000000020000-0x0000000a0000 : "u-boot"
    0x0000000a0000-0x0000002a0000 : "kernel"
    0x0000002a0000-0x000020000000 : "filesystem"
    davinci_nand davinci_nand.1: controller rev. 2.5
    davinci_mdio davinci_mdio.0: davinci mdio revision 1.5
    davinci_mdio davinci_mdio.0: detected phy mask fffffffd
    davinci_mdio.0: probed
    davinci_mdio davinci_mdio.0: phy[1]: device davinci_mdio-0:01, driver NatSemi DP83640
    input: gpio-keys-polled as /devices/platform/gpio-keys-polled.0/input/input0
    omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
    omap_rtc: RTC power up reset detected
    i2c /dev entries driver
    watchdog watchdog: heartbeat 60 sec
    cpuidle: using governor ladder
    cpuidle: using governor menu
    davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode
    soc-audio soc-audio.0: ASoC: Failed to create card debugfs directory
    _regulator_get: 1-0018 supply IOVDD not found, using dummy regulator
    _regulator_get: 1-0018 supply DVDD not found, using dummy regulator
    _regulator_get: 1-0018 supply AVDD not found, using dummy regulator
    _regulator_get: 1-0018 supply DRVDD not found, using dummy regulator
    asoc: tlv320aic3x-hifi <-> davinci-mcasp.0 mapping ok
    ALSA device list:
    #0: DA850/OMAP-L138 EVM
    TCP cubic registered
    NET: Registered protocol family 17
    console [netcon0] enabled
    mmc0: new high speed SDHC card at address 0002
    netconsole: network logging started
    mmcblk0: mmc0:0002 N/A 7.50 GiB
    davinci_emac davinci_emac.1: using random MAC addr: 8e:6d:40:de:f6:47
    mmcblk0: p1 p2 p3
    ata1: SATA link down (SStatus 0 SControl 300)
    omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
    kjournald starting. Commit interval 5 seconds
    EXT3-fs (mmcblk0p2): using internal journal
    EXT3-fs (mmcblk0p2): recovery complete
    EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode
    VFS: Mounted root (ext3 filesystem) on device 179:2.
    Freeing init memory: 160K

    INIT: version 2.88 booting

    Starting udev
    kjournald starting. Commit interval 5 seconds
    EXT3-fs (mmcblk0p3): using internal journal
    EXT3-fs (mmcblk0p3): recovery complete
    EXT3-fs (mmcblk0p3): mounted filesystem with writeback data mode
    Starting Bootlog daemon: bootlogd.

    ALSA: Restoring mixer settings...

    Configuring network interfaces... net eth0: attached PHY driver [NatSemi DP83640] (mii_bus:phy_addr=davinci_mdio-0:01, id=20005ce1)
    udhcpc (v1.20.2) started

    Sending discover...

    davinci_mdio davinci_mdio.0: resetting idled controller
    PHY: davinci_mdio-0:01 - Link is Up - 100/Full
    Sending discover...

    Sending discover...

    No lease, failing

    done.

    Wed Nov 6 12:05:00 UTC 2013


    INIT: Entering runlevel: 5


    Starting system message bus: dbus.

    Starting Dropbear SSH server: ipv6: disagrees about version of symbol inet_recvmsg
    ipv6: Unknown symbol inet_recvmsg (err -22)
    ipv6: disagrees about version of symbol skb_free_datagram
    ipv6: Unknown symbol skb_free_datagram (err -22)
    ipv6: disagrees about version of symbol __skb_checksum_complete
    ipv6: Unknown symbol __skb_checksum_complete (err -22)
    ipv6: disagrees about version of symbol register_sysctl_paths
    ipv6: Unknown symbol register_sysctl_paths (err -22)
    ipv6: disagrees about version of symbol xfrm_inner_extract_output
    ipv6: Unknown symbol xfrm_inner_extract_output (err -22)
    ipv6: disagrees about version of symbol skb_free_datagram_locked
    ipv6: Unknown symbol skb_free_datagram_locked (err -22)
    ipv6: disagrees about version of symbol sock_i_uid
  • Hello,

    ipv6: Unknown symbol inet_recvmsg (err -22)
    ipv6: disagrees about version of symbol skb_free_datagram
    ipv6: Unknown symbol skb_free_datagram (err -22)
    ipv6: disagrees about version of symbol __skb_checksum_complete
    ipv6: Unknown symbol __skb_checksum_complete (err -22)
    ipv6: disagrees about version of symbol register_sysctl_paths
    ipv6: Unknown symbol register_sysctl_paths (err -22)
    ipv6: disagrees about version of symbol xfrm_inner_extract_output
    ipv6: Unknown symbol xfrm_inner_extract_output (err -22)
    ipv6: disagrees about version of symbol skb_free_datagram_locked
    ipv6: Unknown symbol skb_free_datagram_locked (err -22)
    ipv6: disagrees about version of symbol sock_i_uid

    The above errors mean the module isn’t compatible with Linux which you have built.

    There is some init script which it is trying to load the module. In your file system (of omapl138 ) look for modules location (find / -name *.ko) should tell you that.

    When you built your kernel also build the modules and copy those modules to the location reported by above. (Note: it needs to be in same folder structure)

    Cheers,
    --Prabhakar Lad
  • Thanks ,

    Yes I think, I do that. But will list the steps.

    1) After doing the make uImage; make modules and make modules_install;
    2) I am moving the uImage into the SD card boot partition (uImage is taken from arch/arm/boot)
    3) Copying the file system created by the module_install into the SD card in rootFS partition. This basically is over writing "lib" folder.

    Is these steps right??
  • It could be that make modules_install is installing it in /lib/ in the PC.

    Can you try giving make modules_install INSTALL_MOD_PATH=
    INSTALL_MOD_PATH to SDCard path
  • Yeah, it was writing in sd card but was creating folder lib in lib!!!
    Thanks for the support it cleared all the errors..

    But for some reason still fails to do DHCP!!! will debug next week. thanks.