Skip to contentSkip to conversation

ppc32: fix treeboot image entrypoint

PATCH In review Eugene Surovegin 2 participants 2 messages Nov 24, 2005 – Nov 28, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc32: fix treeboot image entrypoint

Correctly specify treeboot based image entrypoint. Currently makefile uses $(ENTRYPOINT) which isn't defined anywhere. Each board port sets entrypoint-$(CONFIG_BOARD_NAME) instead.

Without this patch I cannot boot Ocotea (PPC440GX eval board) anymore. I was getting random "OS panic" errors from OpenBIOS for a while, but with current kernel I get them all the time (probably because image became bigger).

---

arch/ppc/boot/simple/Makefile +2 -2
index 82df88b..f3e9c53 100644
@@ -262,11 +262,11 @@ $(images)/zImage.initrd-STRIPELF: $(obj)
 		skip=64 bs=1k
 
 $(images)/zImage-TREE: $(obj)/zvmlinux $(MKTREE)
-	$(MKTREE) $(obj)/zvmlinux $(images)/zImage.$(end-y) $(ENTRYPOINT)
+	$(MKTREE) $(obj)/zvmlinux $(images)/zImage.$(end-y) $(entrypoint-y)
 
 $(images)/zImage.initrd-TREE: $(obj)/zvmlinux.initrd $(MKTREE)
 	$(MKTREE) $(obj)/zvmlinux.initrd $(images)/zImage.initrd.$(end-y) \
-		$(ENTRYPOINT)
+		$(entrypoint-y)
 
 $(images)/zImage-PPLUS: $(obj)/zvmlinux $(MKPREP) $(MKBUGBOOT)
 	$(MKPREP) -pbp $(obj)/zvmlinux $(images)/zImage.$(end-y)
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · Eugene Surovegin

Correctly specify treeboot based image entrypoint. Currently makefile uses $(ENTRYPOINT) which isn't defined anywhere. Each board port sets entrypoint-$(CONFIG_BOARD_NAME) instead.

Without this patch I cannot boot Ocotea (PPC440GX eval board) anymore. I was getting random "OS panic" errors from OpenBIOS for a while, but with current kernel I get them all the time (probably because image became bigger).

I wonder how that got lost when I think ENTRYPOINT was changed to entrypoint-$(board_name). Maybe we should also think about changing the default entry point in mktreeboot.c, what do you think Eugene? or Matt?

Signature · 2 lines
Tom Rini
http://gate.crashing.org/~trini/