niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Linux » embedded
U-Boot alignment exception when calling Linux kernel
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Winther
*nix forums beginner


Joined: 13 Jul 2006
Posts: 2

PostPosted: Thu Jul 13, 2006 12:08 pm    Post subject: U-Boot alignment exception when calling Linux kernel Reply with quote

Hi, I'm trying to get a 2.4.18 kernel started from U-boot 1.1.4 on a
Freescale PPC MPC8245 processor.

The U-boot code is configured for our costume board and is running
fine. We use top boot and U-boot is in flash, which is at 0xFE000000.
IMMR is at 0xF0000000. The kernel is loaded via tftp into SDRAM at
0x00500000. All of this is working fine.

When the kernel is called from common/cmd_bootm.c I get an 'Alignment
exception', and the board resets.

Why does this cause an 'Alignment exception'?

Any help is appreciated.

Best regards
Mogens Winther

------------------------------
=> bootm
## Booting image at 00500000 ...
Image Name: VoXip2 2.4.18
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 597562 Bytes = 583.6 kB
Load Address: 00500000
Entry Point: 00500000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
## Current stack ends at 0x01BACCD8 => set upper limit to 0x00800000
No initrd
## Transferring control to Linux (at address 00500000) ...
MW KERNEL: 00500000 - kdb: 007ffea0 - inits: 00000000 - inite: 00000000
- cmds: 007fff00 - cmde: 007fff05
NIP: 0050A1E0 XER: 20000000 LR: 00500010 REGS: 01bacbe8 TRAP: 0600 DAR:
0080246E
MSR: 00003002 EE: 0 PR: 0 FP: 1 ME: 1 IR/DR: 00

GPR00: 01FD8184 01BACCD8 F7FFCFFF 007FFEA0 00000000 00000000 007FFF00
007FFF05
GPR08: 00000001 F0000091 00000000 F0000088 00000030 FFFFBCBB 01FFE000
007FFF05
GPR16: 00000001 FFFFFFFF 00500000 01FF8C84 00000000 007FFF00 00000001
01BCD2C0
GPR24: 00800000 00000000 00000000 007FFEA0 00000000 01BACF64 01FFE634
00000000
Call backtrace:
01FD8184 01FD7CD8 01FE1980 01FE1CA0 01FE1F28 01FE2F98 01FE317C
01FD69A8 01FD1E54 01FD048C
Alignment Exception
Back to top
Winther
*nix forums beginner


Joined: 13 Jul 2006
Posts: 2

PostPosted: Fri Jul 14, 2006 7:30 am    Post subject: Re: U-Boot alignment exception when calling Linux kernel Reply with quote

Problem solved - The 'Load address' and 'Entry point' for the kernel
wasn't set to 0 when the kernel image was created with mkimage.

Winther skrev:

Quote:
Hi, I'm trying to get a 2.4.18 kernel started from U-boot 1.1.4 on a
Freescale PPC MPC8245 processor.

The U-boot code is configured for our costume board and is running
fine. We use top boot and U-boot is in flash, which is at 0xFE000000.
IMMR is at 0xF0000000. The kernel is loaded via tftp into SDRAM at
0x00500000. All of this is working fine.

When the kernel is called from common/cmd_bootm.c I get an 'Alignment
exception', and the board resets.

Why does this cause an 'Alignment exception'?

Any help is appreciated.

Best regards
Mogens Winther

------------------------------
=> bootm
## Booting image at 00500000 ...
Image Name: VoXip2 2.4.18
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 597562 Bytes = 583.6 kB
Load Address: 00500000
Entry Point: 00500000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
## Current stack ends at 0x01BACCD8 => set upper limit to 0x00800000
No initrd
## Transferring control to Linux (at address 00500000) ...
MW KERNEL: 00500000 - kdb: 007ffea0 - inits: 00000000 - inite: 00000000
- cmds: 007fff00 - cmde: 007fff05
NIP: 0050A1E0 XER: 20000000 LR: 00500010 REGS: 01bacbe8 TRAP: 0600 DAR:
0080246E
MSR: 00003002 EE: 0 PR: 0 FP: 1 ME: 1 IR/DR: 00

GPR00: 01FD8184 01BACCD8 F7FFCFFF 007FFEA0 00000000 00000000 007FFF00
007FFF05
GPR08: 00000001 F0000091 00000000 F0000088 00000030 FFFFBCBB 01FFE000
007FFF05
GPR16: 00000001 FFFFFFFF 00500000 01FF8C84 00000000 007FFF00 00000001
01BCD2C0
GPR24: 00800000 00000000 00000000 007FFEA0 00000000 01BACF64 01FFE634
00000000
Call backtrace:
01FD8184 01FD7CD8 01FE1980 01FE1CA0 01FE1F28 01FE2F98 01FE317C
01FD69A8 01FD1E54 01FD048C
Alignment Exception
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Sun Nov 23, 2008 12:19 pm | All times are GMT
navigation Forum index » *nix » Linux » embedded
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Help required for configuring the VPN Server in Linux SHERDIL security 0 Sun Nov 19, 2006 2:22 pm
No new posts 2 USB webcams on Linux 2.6.15.4 produce a hang Suyog hardware 1 Fri Jul 21, 2006 7:27 am
No new posts Is there C/C++ corresponding function in Linux for Java's... xiebopublic@gmail.com apps 4 Fri Jul 21, 2006 3:22 am
No new posts Is there C/C++ corresponding function in Linux for Java's... xiebopublic@gmail.com C++ 1 Fri Jul 21, 2006 2:44 am
No new posts fsck during startup following mirroring of boot drives Joe D. Solaris 0 Thu Jul 20, 2006 9:09 pm

Debt Consolidation | Personal Loans | Credit Cards | Loans | Babb Fest
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1996s ][ Queries: 16 (0.1285s) ][ GZIP on - Debug on ]