(OSError: [Errno 2] No such file or directory from remove_binary_dir.py from _run_code from _run_module_as_main)

Bug #683582 reported by Dr. David Alan Gilbert
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Image Tools
Fix Released
Low
Martin Ohlsson

Bug Description

Beagle C4 - currently happily running an earlier Linaro release.

I've tried this on todays alpha image and tried it yesterday on the 1129 daily and hit the same problem; the number following the unknown error varies completely.

The image was created using linaro-media-create on a 32bit Lucid install with the command

./linaro-media-create --rootfs ext3 --mmc /dev/mmcblk0 --dev beagle --binary ../../installations/linaro-natty-headless-tar-20101201-1.tar.gz --hwpack ../../installations/hwpack_linaro-omap3_20101201-0_armel_supported.tar.gz

This was using the bzr linaro-image-tools revno 176 (although yesterdays attempt would have been on an a few revs earlier bzr). It did spit one error at the end of the image creation but this does look purely like a clean up issue:
(OSError: [Errno 2] No such file or directory from remove_binary_dir.py from _run_code from _run_module_as_main).
I didn't get that error on yesterdays attempt so I think it's unrelated to this issue.

The configuration is a Beagle-C4 powered off external PSU, with a powered USB hub in it's OTG port to which is connected an ethernet adapter. To the fast USB port is connected a Lacie USB hard drive. This boot also fails if I disconnect the hard drive.

--------------------------------------------------------------------------------

Texas Instruments X-Loader 1.4.2 (Feb 19 2009 - 12:01:24)
Reading boot sector
Loading u-boot.bin from mmc

U-Boot 2010.09-rc1 (Sep 23 2010 - 11:20:00)

OMAP3530-GP ES3.1, CPU-OPP2, L3-165MHz, Max CPU Clock 720 mHz
OMAP3 Beagle board + LPDDR/NAND
I2C: ready
DRAM: 128 MiB
NAND: 256 MiB
*** Warning - bad CRC or NAND, using default environment

In: serial
Out: serial
Err: serial
Beagle Rev C4
Die ID #5554000400000000040365fa1701500f
Hit any key to stop autoboot: 0
mmc1 is available
reading boot.scr

396 bytes read
Running bootscript from mmc ...
## Executing script at 82000000
reading uImage

3704948 bytes read
reading uInitrd

4788104 bytes read
## Booting kernel from Legacy Image at 80000000 ...
   Image Name: Linux
   Image Type: ARM Linux Kernel Image (uncompressed)
   Data Size: 3704884 Bytes = 3.5 MiB
   Load Address: 80008000
   Entry Point: 80008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 81600000 ...
   Image Name: initramfs
   Image Type: ARM Linux RAMDisk Image (uncompressed)
   Data Size: 4788040 Bytes = 4.6 MiB
   Load Address: 00000000
   Entry Point: 00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.35-1008-linaro-omap (buildd@hawthorn) (gcc ver)
[ 0.000000] CPU: ARMv7 Processor [411fc083] revision 3 (ARMv7), cr=10c53c7f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction ce
[ 0.000000] Machine: OMAP3 Beagle Board
[ 0.000000] bootconsole [earlycon0] enabled
[ 0.000000] Reserving 12582912 bytes SDRAM for VRAM
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] OMAP3430/3530 ES3.1 (l2cache iva sgx neon isp )
[ 0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x100000
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pa0
[ 0.000000] Kernel command line: console=tty0 console=ttyS2,115200n8 root=0
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] allocated 655360 bytes of page_cgroup
[ 0.000000] please try 'cgroup_disable=memory' option if you don't want memos
[ 0.000000] Memory: 116MB = 116MB total
[ 0.000000] Memory: 103996k/103996k available, 27076k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
[ 0.000000] vmalloc : 0xc8800000 - 0xf8000000 ( 760 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .init : 0xc0008000 - 0xc0042000 ( 232 kB)
[ 0.000000] .text : 0xc0042000 - 0xc06b0000 (6584 kB)
[ 0.000000] .data : 0xc071a000 - 0xc0771600 ( 350 kB)
[ 0.000000] SLUB: Genslabs=9, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, N1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU-based detection of stalled CPUs is disabled.
[ 0.000000] Verbose stalled-CPUs detection is disabled.
[ 0.000000] NR_IRQS:402
[ 0.000000] Clocking rate (Crystal/Core/MPU): 26.0/332/500 MHz
[ 0.000000] Reprogramming SDRC clock to 332000000 Hz
[ 0.000000] GPMC revision 5.0
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrups
[ 0.000000] Total of 96 interrupts on 1 active controller
[ 0.000000] OMAP GPIO hardware version 2.5
[ 0.000000] OMAP clockevent source: GPTIMER12 at 32768 Hz
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.35-1008-linaro-omap (buildd@hawthorn) (gcc ver)
[ 0.000000] CPU: ARMv7 Processor [411fc083] revision 3 (ARMv7), cr=10c53c7f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction ce
[ 0.000000] Machine: OMAP3 Beagle Board
[ 0.000000] bootconsole [earlycon0] enabled
[ 0.000000] Reserving 12582912 bytes SDRAM for VRAM
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] OMAP3430/3530 ES3.1 (l2cache iva sgx neon isp )
[ 0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x100000
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pa0
[ 0.000000] Kernel command line: console=tty0 console=ttyS2,115200n8 root=0
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] allocated 655360 bytes of page_cgroup
[ 0.000000] please try 'cgroup_disable=memory' option if you don't want memos
[ 0.000000] Memory: 116MB = 116MB total
[ 0.000000] Memory: 103996k/103996k available, 27076k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
[ 0.000000] vmalloc : 0xc8800000 - 0xf8000000 ( 760 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .init : 0xc0008000 - 0xc0042000 ( 232 kB)
[ 0.000000] .text : 0xc0042000 - 0xc06b0000 (6584 kB)
[ 0.000000] .data : 0xc071a000 - 0xc0771600 ( 350 kB)
[ 0.000000] SLUB: Genslabs=9, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, N1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU-based detection of stalled CPUs is disabled.
[ 0.000000] Verbose stalled-CPUs detection is disabled.
[ 0.000000] NR_IRQS:402
[ 0.000000] Clocking rate (Crystal/Core/MPU): 26.0/332/500 MHz
[ 0.000000] Reprogramming SDRC clock to 332000000 Hz
[ 0.000000] GPMC revision 5.0
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrups
[ 0.000000] Total of 96 interrupts on 1 active controller
[ 0.000000] OMAP GPIO hardware version 2.5
[ 0.000000] OMAP clockevent source: GPTIMER12 at 32768 Hz
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] console [tty0] enabled
[ 0.000000] Calibrating delay loop... 490.52 BogoMIPS (lpj=1916928)
[ 0.000000] pid_max: default: 32768 minimum: 301
[ 0.000000] Security Framework initialized
[ 0.000000] AppArmor: AppArmor initialized
[ 0.000000] Yama: becoming mindful.
[ 0.000000] Mount-cache hash table entries: 512
[ 0.000000] Initializing cgroup subsys ns
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Initializing cgroup subsys memory
[ 0.000000] Initializing cgroup subsys devices
[ 0.000000] Initializing cgroup subsys freezer
[ 0.000000] CPU: Testing write buffer coherency: ok
[ 0.000000] devtmpfs: initialized
[ 0.000000] regulator: core version 0.5
[ 0.000000] NET: Registered protocol family 16
[ 0.000000] OMAP3 Beagle Rev: C4
[ 0.000000] Found NAND on CS0
[ 0.000000] Registering NAND on CS0
[ 0.000000] hw perfevents: enabled with ARMv7 Cortex-A8 PMU driver, 5 countee
[ 0.000122] OMAP DMA hardware revision 4.0
[ 0.010742] bio: create slab <bio-0> at 0
[ 0.017181] SCSI subsystem initialized
[ 0.021881] usbcore: registered new interface driver usbfs
[ 0.027801] usbcore: registered new interface driver hub
[ 0.033569] usbcore: registered new device driver usb
[ 0.039367] i2c_omap i2c_omap.1: bus 1 rev3.12 at 2600 kHz
[ 0.047882] twl4030: PIH (irq 7) chaining IRQs 368..375
[ 0.053436] twl4030: power (irq 373) chaining IRQs 376..383
[ 0.059783] twl4030: gpio (irq 368) chaining IRQs 384..401
[ 0.068511] regulator: VUSB1V5: 1500 mV normal standby
[ 0.074371] regulator: VUSB1V8: 1800 mV normal standby
[ 0.080169] regulator: VUSB3V1: 3100 mV normal standby
[ 0.086517] regulator: VMMC1: 1850 <--> 3150 mV at 3000 mV normal standby
[ 0.094055] regulator: VDAC: 1800 mV normal standby
[ 0.099609] regulator: VPLL2: 1800 mV normal standby
[ 0.105346] regulator: VSIM: 1800 <--> 3000 mV at 1800 mV normal standby
[ 0.127075] i2c_omap i2c_omap.3: bus 3 rev3.12 at 100 kHz
[ 0.133819] Advanced Linux Sound Architecture Driver Version 1.0.23.
[ 0.141143] NetLabel: Initializing
[ 0.144775] NetLabel: domain hash size = 128
[ 0.149383] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.154693] NetLabel: unlabeled traffic allowed by default
[ 0.160583] Switching to clocksource 32k_counter
[ 0.175903] AppArmor: AppArmor Filesystem Enabled
[ 0.194488] NET: Registered protocol family 2
[ 0.199432] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.207672] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.215209] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.222045] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.228729] TCP reno registered
[ 0.232086] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.238220] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.245056] NET: Registered protocol family 1
[ 0.249694] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.257110] Trying to unpack rootfs image as initramfs...
[ 0.263732] PMU: registered new PMU device of type 0
[ 0.277099] audit: initializing netlink socket (disabled)
[ 0.291717] type=2000 audit(0.585:1): initialized
[ 0.686340] VFS: Disk quotas dquot_6.5.2
[ 0.697662] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.717498] fuse init (API version 7.14)
[ 0.729248] msgmni has been set to 203
[ 0.746002] alg: No test for stdrng (krng)
[ 0.750885] Block layer SCSI generic (bsg) driver version 0.4 loaded (major )
[ 0.758728] io scheduler noop registered
[ 0.762908] io scheduler deadline registered
[ 0.784637] io scheduler cfq registered (default)
[ 0.846282] OMAP DSS rev 2.0
[ 0.849487] OMAP DISPC rev 3.0
[ 0.852783] OMAP VENC rev 2
[ 1.191528] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 1.202178] Freeing initrd memory: 4672K
[ 1.227844] serial8250.0: ttyS0 at MMIO 0x4806a000 (irq = 72) is a ST16654
[ 1.255371] serial8250.1: ttyS1 at MMIO 0x4806c000 (irq = 73) is a ST16654
[ 1.282867] serial8250.2: ttyS2 at MMIO 0x49020000 (irq = 74) is a ST16654
[ 1.290100] console [ttyS2] enabled, bootconsole disabled
[ 1.290100] console [ttyS2] enabled, bootconsole disabled
[ 1.310089] brd: module loaded
[ 1.317779] loop: module loaded
[ 1.323059] omap2-nand driver initializing
[ 1.327514] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xba (Micron omap2-)
[ 1.335296] NAND bus width 8 instead 16 bit
[ 1.339538] No NAND device found.
[ 1.343048] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xba (Micron NAND 2)
[ 1.351806] Creating 5 MTD partitions on "omap2-nand.0":
[ 1.357208] 0x000000000000-0x000000080000 : "X-Loader"
[ 1.364166] 0x000000080000-0x000000260000 : "U-Boot"
[ 1.371429] 0x000000260000-0x000000280000 : "U-Boot Env"
[ 1.378204] 0x000000280000-0x000000680000 : "Kernel"
[ 1.386260] 0x000000680000-0x000010000000 : "File System"
[ 1.497558] PPP generic driver version 2.4.2
[ 1.502319] SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256) .
[ 1.512115] CSLIP: code copyright 1989 Regents of the University of Californ.
[ 1.519531] SLIP linefill/keepalive option.
[ 1.523956] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.530883] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
[ 1.536682] ehci-omap ehci-omap.0: new USB bus registered, assigned bus numb1
[ 1.544403] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
[ 1.564117] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
[ 1.570892] hub 1-0:1.0: USB hub found
[ 1.574768] hub 1-0:1.0: 3 ports detected
[ 1.603790] mice: PS/2 mouse device common for all mice
[ 1.609558] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0
[ 1.615905] twl_rtc twl_rtc: Power up reset detected.
[ 1.622039] twl_rtc twl_rtc: Enabling TWL-RTC.
[ 1.627838] device-mapper: uevent: version 1.0.3
[ 1.633361] device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-m
[ 1.642395] device-mapper: multipath: version 1.1.1 loaded
[ 1.647918] device-mapper: multipath round-robin: version 1.0.0 loaded
[ 1.655517] cpuidle: using governor ladder
[ 1.659729] cpuidle: using governor menu
[ 1.663787] sdhci: Secure Digital Host Controller Interface driver
[ 1.670043] sdhci: Copyright(c) Pierre Ossman
[ 1.815429] No device for DAI omap-mcbsp-dai-0
[ 1.819946] No device for DAI omap-mcbsp-dai-1
[ 1.824462] No device for DAI omap-mcbsp-dai-2
[ 1.828948] No device for DAI omap-mcbsp-dai-3
[ 1.833465] No device for DAI omap-mcbsp-dai-4
[ 1.838073] Not OMAP3 EVM!
[ 1.840789] OMAP3 Beagle/Devkit8000 SoC init
[ 1.846923] asoc: twl4030 <-> omap-mcbsp-dai-0 mapping ok
[ 1.856414] ALSA device list:
[ 1.859436] #0: omap3beagle (twl4030)
[ 1.864685] TCP cubic registered
[ 1.869384] NET: Registered protocol family 10
[ 1.875457] lo: Disabled Privacy Extensions
[ 1.880767] NET: Registered protocol family 17
[ 1.885498] VFP support v0.3: implementor 41 architecture 3 part 30 variant 1
[ 1.895019] Power Management for TI OMAP3.
[ 1.899963] usb 1-2: new high speed USB device using ehci-omap and address 2
[ 1.909637] registered taskstats version 1
[ 1.914123] fbcvt: 1280x720@60: CVT Name - .921M9-R
[ 1.945587] Console: switching to colour frame buffer device 160x45
[ 1.971649] regulator_init_complete: incomplete constraints, leaving VDAC on
[ 1.982238] regulator_init_complete: incomplete constraints, leaving VUSB3V1n
[ 1.990081] regulator_init_complete: incomplete constraints, leaving VUSB1V8n
[ 1.998046] regulator_init_complete: incomplete constraints, leaving VUSB1V5n
[ 2.006500] twl_rtc twl_rtc: setting system clock to 2000-01-01 00:00:00 UTC)
[ 2.017669] Freeing init memory: 232K
Loading, please wait...
[ 2.118133] mmc0: new high speed SD card at address e624
[ 2.132690] mmcblk0: mmc0:e624 SD02G 1.89 GiB
[ 2.142761] mmcblk0: p1 p2
[ 2.202423] udev[63]: starting version 164
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
[ 3.345764] EXT3-fs: barriers not enabled
[ 3.409271] kjournald starting. Commit interval 5 seconds
[ 3.415039] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... [ 3.600433] Initializing USB Mass St.
[ 3.627136] scsi0 : usb-storage 1-2:1.0
[ 3.653015] usbcore: registered new interface driver usb-storage
[ 3.663513] USB Mass Storage support registered.
[ 3.718566] usbcore: registered new interface driver hiddev
done.
[ 3.747650] input: LaCie d2 quadra (button) as /devices/platform/ehci-omap.00
[ 3.765289] generic-usb 0003:059F:1014.0001: input,hidraw0: USB HID v1.11 De1
[ 3.784667] usbcore: registered new interface driver usbhid
[ 3.795043] usbhid: USB HID core driver
/init: exec: line 331: run-init: Unknown error 13868556
[ 3.837554] Kernel panic - not syncing: Attempted to kill init!
[ 3.848358] [<c0055be4>] (unwind_backtrace+0x0/0x100) from [<c050e8f8>] (dum)
[ 3.861694] [<c050e8f8>] (dump_stack+0x18/0x1c) from [<c050e968>] (panic+0x6)
[ 3.874114] [<c050e968>] (panic+0x6c/0xe4) from [<c0084d64>] (forget_origina)
[ 3.887908] [<c0084d64>] (forget_original_parent+0x2a0/0x2b0) from [<c0084d9)
[ 3.902435] [<c0084d90>] (exit_notify+0x1c/0x13c) from [<c0085018>] (do_exit)
[ 3.915802] [<c0085018>] (do_exit+0x168/0x318) from [<c008520c>] (do_group_e)
[ 3.929321] [<c008520c>] (do_group_exit+0x44/0xb4) from [<c0085294>] (sys_ex)
[ 3.943359] [<c0085294>] (sys_exit_group+0x18/0x20) from [<c004e180>] (ret_f)

--------------------------------------------------------------------------------

Revision history for this message
Guilherme Salgado (salgado) wrote : Re: [Bug 683582] [NEW] Failed to boot - /init: exec: line 331: run-init: Unknown error <random number>

The error spit by l-m-c is indeed a clean up issue, and there's a branch
which fixes it already. It should land today.

Revision history for this message
Paul Larson (pwlars) wrote : Re: Failed to boot - /init: exec: line 331: run-init: Unknown error <random number>

The unknown error you get later is a dup of bug #683217. Since there are two issues here though, I'll just move this to focus on the l-m-c bug.

summary: - Failed to boot - /init: exec: line 331: run-init: Unknown error <random
- number>
+ (OSError: [Errno 2] No such file or directory from remove_binary_dir.py
+ from _run_code from _run_module_as_main)
affects: linaro → linaro-image-tools
Changed in linaro-image-tools:
status: New → Triaged
importance: Undecided → Low
Changed in linaro-image-tools:
assignee: nobody → Martin Ohlsson (martin-ohlson)
status: Triaged → Fix Released
Revision history for this message
Jamie Bennett (jamiebennett) wrote :

plars I think you mean bug #683683

Revision history for this message
Paul Larson (pwlars) wrote :

Jamie, bug #683217 was the earlier one that I opened on Linaro, but later found out that it was also an issue in Ubuntu via bug #683683, so I duped mine to that one after writing this here, since the later one had more information and people looking at it.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.