polisholsby
Posts: 2
Joined: Fri Feb 22, 2013 12:07 pm

OK01 LED blinks 3 times

Fri Feb 22, 2013 12:11 pm

I have followed the instructions on
http://www.cl.cam.ac.uk/freshers/raspbe ... /ok01.html
I have also tried the solution to make sure I am having everything right.
When I replace the kernel.img with my compiled kernel.img and put the SD card the the rPi and power it up. All I get is the green LED blinks 3 times in a loop.

3 blinks, pause, 3 blinks, pause

when I use the original kernel.img from raspberrian it works ok.

any advise ?

User avatar
DexOS
Posts: 876
Joined: Wed May 16, 2012 6:32 pm
Contact: Website

Re: OK01 LED blinks 3 times

Fri Feb 22, 2013 10:57 pm

polisholsby wrote:I have followed the instructions on
http://www.cl.cam.ac.uk/freshers/raspbe ... /ok01.html
I have also tried the solution to make sure I am having everything right.
When I replace the kernel.img with my compiled kernel.img and put the SD card the the rPi and power it up. All I get is the green LED blinks 3 times in a loop.

3 blinks, pause, 3 blinks, pause

when I use the original kernel.img from raspberrian it works ok.

any advise ?
Have you put
kernel_old=1
In your config.txt file ?, it should not make a difference with that tut, but its worth a try.
Batteries not included, Some assembly required.

polisholsby
Posts: 2
Joined: Fri Feb 22, 2013 12:07 pm

Re: OK01 LED blinks 3 times

Sat Feb 23, 2013 10:30 am

Interesting, I used a different SD card and it worked. The interesting part is that the non working SD card works fine with respberria, openelec etc. So if you come across this issue it's worth a shot to try another SD card.

User avatar
Burngate
Posts: 5892
Joined: Thu Sep 29, 2011 4:34 pm
Location: Berkshire UK Tralfamadore
Contact: Website

Re: OK01 LED blinks 3 times

Sat Feb 23, 2013 10:31 am

polisholsby wrote:... All I get is the green LED blinks 3 times in a loop...
According to http://elinux.org/R-Pi_Troubleshooting 3 blinks is "3 flashes: start.elf not found"

Quite how changing kernel.img can affect start.elf, I'm not sure.
It may be worth looking at how you're swapping the kernels

Edit: of course a faulty card could cause strange things!

alvinAvR
Posts: 5
Joined: Tue Jan 22, 2013 7:47 pm

Re: OK01 LED blinks 3 times

Tue Mar 26, 2013 7:26 am

The same thing just happened to me.

Somehow the name of the start.elf file became corrupted. It contained a non-printing character, the file name still looked correct but wasn’t.

I renamed start.elf and then copied it back
mv start.elf start.elfx
cp start.elfx start.elf

This fixed the problem.

Alvin

JustRaspberry
Posts: 20
Joined: Fri Oct 19, 2012 3:25 am

Re: OK01 LED blinks 3 times

Thu Mar 28, 2013 12:22 am

the demo code was written for old raspberry pi, you are probably using new raspberry pi. you have to modify boot loader and tell it to boot using old kernel

User avatar
g7ruh
Posts: 67
Joined: Mon Apr 23, 2012 9:49 am
Location: Blackfield UK

Re: OK01 LED blinks 3 times

Fri Mar 29, 2013 4:03 pm

Somehow the name of the start.elf file became corrupted
.

alvinAvR

Just happened to me, I did a firmware upgrade and it crashed with three blinks on reboot. Maybe there is a bad filename in the update? Had you just done a FW update?

Roger

howarthc
Posts: 5
Joined: Sun Mar 31, 2013 3:43 pm

Re: OK01 LED blinks 3 times

Sun Mar 31, 2013 3:47 pm

Just hit this problem today, ran rpi-update and it seems to stall half way through and I lost network connection. Now I have the red power light and the ok light blinks 3 times, pauses then starts blinking again. Annoyed, just got it all configured how I wanted it and the rpi-update has certainly corrupted something. :(

User avatar
ukscone
Forum Moderator
Forum Moderator
Posts: 4098
Joined: Fri Jul 29, 2011 2:51 pm
Contact: Website

Re: OK01 LED blinks 3 times

Sun Mar 31, 2013 4:14 pm

howarthc wrote:Just hit this problem today, ran rpi-update and it seems to stall half way through and I lost network connection. Now I have the red power light and the ok light blinks 3 times, pauses then starts blinking again. Annoyed, just got it all configured how I wanted it and the rpi-update has certainly corrupted something. :(
happened to me yesterday, 3 blinks means corrupted or missing start.elf so I took the sd card to another machine and copied the start.elf from my /book.bak directory. If you don't have one or can't go to another machine grab the start.elf from another sd card and copy ont the corrupt one. once i had it booting again i did an rpi-update again and it worked that time.

howarthc
Posts: 5
Joined: Sun Mar 31, 2013 3:43 pm

Re: OK01 LED blinks 3 times

Sun Mar 31, 2013 4:44 pm

Thanks, I plugged the card into a windoze pc i had, copied the start.elf and pasted it back on the card, deleted the original and renamed the copy. Sorted. Rpi-update definitely broke this, we are sure to see an influx of users complaining of the same issue...

Rainman32
Posts: 1
Joined: Tue Apr 02, 2013 2:51 pm

Re: OK01 LED blinks 3 times

Tue Apr 02, 2013 2:55 pm

I also had this issue from rpi-update and success fixing by simply renaming the start.elf file and then naming it back again with the SD card on a Win machine

start.elf > start.elf0
start.elf0 > start.elf

dpc
Posts: 4
Joined: Sun Apr 07, 2013 4:30 pm

Re: OK01 LED blinks 3 times

Sun Apr 07, 2013 4:35 pm

Thanks for posting this info. I, too, ran into the "three blinks" and an unbooting Pi.

I simply did what was prescribed above:

Code: Select all

cd /boot
sudo mv start.elf start.elfx
sudo cp start.elfx start.elf
(this also worked by performing the same operations in from within a Terminal window on a Mac too)

andig2
Posts: 51
Joined: Wed Oct 31, 2012 9:34 pm

Re: OK01 LED blinks 3 times

Mon Apr 29, 2013 8:26 pm

Same problem here. Ran fine for 6 weeks, dead on reboot. start.elf had become rouge. Suspecting recent rpi-update but not sure.

NathanBookham
Posts: 64
Joined: Sat Dec 15, 2012 9:18 am

Re: OK01 LED blinks 3 times

Wed May 15, 2013 6:57 pm

andig2 wrote:Same problem here. Ran fine for 6 weeks, dead on reboot. start.elf had become rouge. Suspecting recent rpi-update but not sure.
Just happened to me as well. My SD is dying anyway, so I need to get a new one.
This account is now inactive.
I am now known as 'InverseSandwich'

NathanBookham
Posts: 64
Joined: Sat Dec 15, 2012 9:18 am

Re: OK01 LED blinks 3 times

Wed May 15, 2013 6:59 pm

It now boots, but I am just getting I/O errors. I'll do a UART probe and see what happens.
This account is now inactive.
I am now known as 'InverseSandwich'

NathanBookham
Posts: 64
Joined: Sat Dec 15, 2012 9:18 am

Re: OK01 LED blinks 3 times

Wed May 15, 2013 7:07 pm

Got it to boot into Raspbian over UART. Looking at the output, it says it has done a recovery at 4.338157. Here's the output:

Code: Select all

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.6.11+ ([email protected]) (gcc version 4.7.2 20120731 (prerelease) (crosstool-NG linaro-1.13.1+bzr2458 - Linaro GCC 2012.08) ) #446 PREEMPT Fri May 10 20:17:25 BST 2013
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine: BCM2708
[    0.000000] cma: CMA: reserved 16 MiB at 17000000
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 97536
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=720 bcm2708_fb.fbheight=576 bcm2708.boardrev=0xf bcm2708.serial=0xdb7f87e0 smsc95xx.macaddr=B8:27:EB:7F:87:E0 sdhci-bcm2708.emmc_clock_freq=100000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 384MB = 384MB total
[    0.000000] Memory: 367240k/367240k available, 25976k 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]     vmalloc : 0xd8800000 - 0xff000000   ( 616 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd8000000   ( 384 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc04e647c   (4986 kB)
[    0.000000]       .init : 0xc04e7000 - 0xc0507f24   ( 132 kB)
[    0.000000]       .data : 0xc0508000 - 0xc053c080   ( 209 kB)
[    0.000000]        .bss : 0xc053c0a4 - 0xc05e4758   ( 674 kB)
[    0.000000] NR_IRQS:330
[    0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [tty1] enabled
[    0.001028] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792)
[    0.060127] pid_max: default: 32768 minimum: 301
[    0.060459] Mount-cache hash table entries: 512
[    0.061220] Initializing cgroup subsys cpuacct
[    0.061274] Initializing cgroup subsys devices
[    0.061306] Initializing cgroup subsys freezer
[    0.061336] Initializing cgroup subsys blkio
[    0.061427] CPU: Testing write buffer coherency: ok
[    0.061764] hw perfevents: enabled with v6 PMU driver, 3 counters available
[    0.061904] Setting up static identity map for 0x39d698 - 0x39d6f4
[    0.063399] devtmpfs: initialized
[    0.074065] NET: Registered protocol family 16
[    0.080492] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.081594] bcm2708.uart_clock = 0
[    0.082981] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.083035] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.083073] mailbox: Broadcom VideoCore Mailbox driver
[    0.083168] bcm2708_vcio: mailbox at f200b880
[    0.083267] bcm_power: Broadcom power driver
[    0.083306] bcm_power_open() -> 0
[    0.083331] bcm_power_request(0, 8)
[    0.584016] bcm_mailbox_read -> 00000080, 0
[    0.584058] bcm_power_request -> 0
[    0.584085] Serial: AMBA PL011 UART driver
[    0.584230] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83) is a PL011 rev3
[    0.907975] console [ttyAMA0] enabled
[    0.931604] bio: create slab <bio-0> at 0
[    0.936486] SCSI subsystem initialized
[    0.940581] usbcore: registered new interface driver usbfs
[    0.946169] usbcore: registered new interface driver hub
[    0.951770] usbcore: registered new device driver usb
[    0.958126] Switching to clocksource stc
[    0.962361] FS-Cache: Loaded
[    0.965493] CacheFiles: Loaded
[    0.980257] NET: Registered protocol family 2
[    0.985535] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    0.993270] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[    1.000058] TCP: Hash tables configured (established 16384 bind 16384)
[    1.006662] TCP: reno registered
[    1.009916] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.015814] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.022406] NET: Registered protocol family 1
[    1.027276] RPC: Registered named UNIX socket transport module.
[    1.033320] RPC: Registered udp transport module.
[    1.038042] RPC: Registered tcp transport module.
[    1.042789] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.049904] bcm2708_dma: DMA manager at f2007000
[    1.054693] bcm2708_gpio: bcm2708_gpio_probe c0515d98
[    1.060158] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[    1.069305] audit: initializing netlink socket (disabled)
[    1.074897] type=2000 audit(0.930:1): initialized
[    1.196758] VFS: Disk quotas dquot_6.5.2
[    1.200792] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.207852] FS-Cache: Netfs 'nfs' registered for caching
[    1.213604] NFS: Registering the id_resolver key type
[    1.218766] Key type id_resolver registered
[    1.223063] Key type id_legacy registered
[    1.227430] msgmni has been set to 749
[    1.232956] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    1.240671] io scheduler noop registered
[    1.244709] io scheduler deadline registered (default)
[    1.249894] io scheduler cfq registered
[    1.267906] Console: switching to colour frame buffer device 90x36
[    1.279139] kgdb: Registered I/O driver kgdboc.
[    1.287104] vc-cma: Videocore CMA driver
[    1.293809] vc-cma: vc_cma_base      = 0x00000000
[    1.301125] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    1.309098] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    1.326063] brd: module loaded
[    1.336630] loop: module loaded
[    1.342696] vchiq: vchiq_init_state: slot_zero = 0xd7000000, is_master = 0
[    1.352892] Loading iSCSI transport class v2.0-870.
[    1.361333] usbcore: registered new interface driver smsc95xx
[    1.369978] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.583551] Core Release: 2.80a
[    1.589298] Setting default values for core params
[    1.596773] Finished setting default values for core params
[    1.810047] Using Buffer DMA mode
[    1.815941] Periodic Transfer Interrupt Enhancement - disabled
[    1.824334] Multiprocessor Interrupt Enhancement - disabled
[    1.832459] OTG VER PARAM: 0, OTG VER FLAG: 0
[    1.839328] Dedicated Tx FIFOs mode
[    1.846646] dwc_otg bcm2708_usb: DWC OTG Controller
[    1.854253] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[    1.864137] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    1.872172] Init: Port Power? op_state=1
[    1.878618] Init: Power Port (0)
[    1.884442] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.893817] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.903569] usb usb1: Product: DWC OTG Controller
[    1.910746] usb usb1: Manufacturer: Linux 3.6.11+ dwc_otg_hcd
[    1.919023] usb usb1: SerialNumber: bcm2708_usb
[    1.926869] hub 1-0:1.0: USB hub found
[    1.933229] hub 1-0:1.0: 1 port detected
[    1.940181] Initializing USB Mass Storage driver...
[    1.947828] usbcore: registered new interface driver usb-storage
[    1.956379] USB Mass Storage support registered.
[    1.963694] usbcore: registered new interface driver libusual
[    1.972392] mousedev: PS/2 mouse device common for all mice
[    1.981278] bcm2835-cpufreq: min=700000 max=950000 cur=700000
[    1.989897] bcm2835-cpufreq: switching to governor powersave
[    1.998207] bcm2835-cpufreq: switching to governor powersave
[    2.006417] cpuidle: using governor ladder
[    2.013024] cpuidle: using governor menu
[    2.019432] sdhci: Secure Digital Host Controller Interface driver
[    2.028102] sdhci: Copyright(c) Pierre Ossman
[    2.035127] sdhci: Enable low-latency mode
[    2.082408] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
[    2.092979] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
[    2.103574] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.117546] usbcore: registered new interface driver usbhid
[    2.125780] usbhid: USB HID core driver
[    2.134362] Indeed it is in host mode hprt0 = 00021501
[    2.146841] TCP: cubic registered
[    2.162247] Initializing XFRM netlink socket
[    2.182403] NET: Registered protocol family 17
[    2.190507] Key type dns_resolver registered
[    2.222603] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    2.242967] registered taskstats version 1
[    2.262991] Waiting for root device /dev/mmcblk0p2...
[    2.270760] mmc0: read SD Status register (SSR) after 3 attempts
[    2.286165] mmc0: new high speed SDHC card at address aaaa
[    2.301173] mmcblk0: mmc0:aaaa SU16G 14.8 GiB
[    2.309922]  mmcblk0: p1 p2
[    2.412297] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.421632] Indeed it is in host mode hprt0 = 00001101
[    2.632631] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[    2.642537] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.654989] hub 1-1:1.0: USB hub found
[    2.661636] hub 1-1:1.0: 3 ports detected
[    2.942455] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    3.052858] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    3.062606] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.075613] smsc95xx v1.0.4
[    3.136953] smsc95xx 1-1.1:1.0: eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:7f:87:e0
[    4.338157] EXT4-fs (mmcblk0p2): recovery complete
[    4.348625] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    4.362606] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    4.372952] devtmpfs: mounted
[    4.379326] Freeing init memory: 128K
[    5.712914] udevd[154]: starting version 175
[    6.723024] bcm2708_i2c bcm2708_i2c.0: BSC0 Controller at 0x20205000 (irq 79) (baudrate 100k)
[    6.946246] bcm2708_spi bcm2708_spi.0: master is unqueued, this is deprecated
[    7.013966] bcm2708_spi bcm2708_spi.0: SPI Controller at 0x20204000 (irq 80)
[    7.092036] bcm2708_i2c bcm2708_i2c.1: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100k)
[   10.987701] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   11.447477] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   12.289320] i2c /dev entries driver
øà
Debian GNU/Linux 7.0 raspberrypi ttyAMA0

raspberrypi login:
This account is now inactive.
I am now known as 'InverseSandwich'

NathanBookham
Posts: 64
Joined: Sat Dec 15, 2012 9:18 am

Re: OK01 LED blinks 3 times

Wed May 15, 2013 7:12 pm

Oh dear. Left my Pi for a few minutes and this appeared on the console:

Code: Select all

 [  473.240279] EXT4-fs error (device mmcblk0p2) in ext4_reserve_inode_write:4550: Journal has aborted
[  478.633259] EXT4-fs error (device mmcblk0p2) in ext4_dirty_inode:4669: Journal has aborted
[  484.024944] EXT4-fs error (device mmcblk0p2): ext4_journal_start_sb:349: Detected aborted journal
[  484.040549] EXT4-fs (mmcblk0p2): Remounting filesystem read-only
This account is now inactive.
I am now known as 'InverseSandwich'

Return to “Bare metal, Assembly language”