uclinux-dev  

Re: [uClinux-dev] NetBurner MOD5272 reboot solved

Greg Ungerer
Sun, 07 Aug 2011 20:22:12 -0700

Hi Domingos,

On 05/08/11 18:52, dhl...@sapo.pt wrote:
This is my first post in uClinux-dev!!

I am work around NetBurner MOD5272 with kernel 2.4.34.5-uc0,
uClinux-dist-20110603.

I found that reboot comand not work, neither normal nor the BusyBox.
The problem is in file: /linux-2.4.x/include/asm-m68knommu
There is no correct defenition of HARD_RESET_NOW() function for board
MOD5272, and it defines the default function (this cause:

Restarting system.
Access Error Exception 12: Error on data read
Oops: 00000000
PC: [<02003910>]
.....
.....)

I add some line codes in file, after line 278:

#elif defined(CONFIG_M5272) && defined(CONFIG_BOARD_MOD5272)
#define HARD_RESET_NOW() ({             \
         asm("                             \
                     movew #0x2700, %sr;                \
                     jmp 0xffc00008;            \
              ");                          \
})

It works for me.

All this reboot logic is rather ugly in the 2.4-uc kernels.
What you have done is how the others are done, so I have
added that to the uClinux 2.4.x kernel tree.

Thanks
Greg


------------------------------------------------------------------------
Greg Ungerer  --  Principal Engineer        EMAIL:     g...@snapgear.com
SnapGear Group, McAfee                      PHONE:       +61 7 3435 2888
8 Gardner Close                             FAX:         +61 7 3217 5323
Milton, QLD, 4064, Australia                WEB: http://www.SnapGear.com
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev