Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116948
b: refs/heads/master
c: ba556ed
h: refs/heads/master
v: v3
  • Loading branch information
Jason Jin authored and Kumar Gala committed Oct 21, 2008
1 parent ea97235 commit 1cada31
Show file tree
Hide file tree
Showing 49 changed files with 265 additions and 3,428 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 34d81f858a3bdec568bf08c4feb997ccd3d40b94
refs/heads/master: ba556ed23c73796efd58ac348cc33773935bb3b9
3 changes: 3 additions & 0 deletions trunk/arch/powerpc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ config WORD_SIZE
default 64 if PPC64
default 32 if !PPC64

config PPC_MERGE
def_bool y

config MMU
bool
default y
Expand Down
7 changes: 1 addition & 6 deletions trunk/arch/powerpc/boot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ src-plat := of.c cuboot-52xx.c cuboot-824x.c cuboot-83xx.c cuboot-85xx.c holly.c
fixed-head.S ep88xc.c ep405.c cuboot-c2k.c \
cuboot-katmai.c cuboot-rainier.c redboot-8xx.c ep8248e.c \
cuboot-warp.c cuboot-85xx-cpm2.c cuboot-yosemite.c simpleboot.c \
virtex405-head.S virtex.c redboot-83xx.c cuboot-sam440ep.c \
cuboot-acadia.c
virtex405-head.S virtex.c redboot-83xx.c cuboot-sam440ep.c
src-boot := $(src-wlib) $(src-plat) empty.c

src-boot := $(addprefix $(obj)/, $(src-boot))
Expand Down Expand Up @@ -212,7 +211,6 @@ image-$(CONFIG_DEFAULT_UIMAGE) += uImage
# Board ports in arch/powerpc/platform/40x/Kconfig
image-$(CONFIG_EP405) += dtbImage.ep405
image-$(CONFIG_WALNUT) += treeImage.walnut
image-$(CONFIG_ACADIA) += cuImage.acadia

# Board ports in arch/powerpc/platform/44x/Kconfig
image-$(CONFIG_EBONY) += treeImage.ebony cuImage.ebony
Expand Down Expand Up @@ -321,9 +319,6 @@ $(obj)/zImage.iseries: vmlinux
$(obj)/uImage: vmlinux $(wrapperbits)
$(call if_changed,wrap,uboot)

$(obj)/cuImage.initrd.%: vmlinux $(obj)/%.dtb $(wrapperbits)
$(call if_changed,wrap,cuboot-$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz)

$(obj)/cuImage.%: vmlinux $(obj)/%.dtb $(wrapperbits)
$(call if_changed,wrap,cuboot-$*,,$(obj)/$*.dtb)

Expand Down
41 changes: 14 additions & 27 deletions trunk/arch/powerpc/boot/addnote.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*
* Usage: addnote [-r realbase] zImage [note.elf]
* Usage: addnote zImage [note.elf]
*
* If note.elf is supplied, it is the name of an ELF file that contains
* an RPA note to use instead of the built-in one. Alternatively, the
Expand Down Expand Up @@ -153,31 +153,18 @@ unsigned char *read_rpanote(const char *fname, int *nnp)
int
main(int ac, char **av)
{
int fd, n, i, ai;
int fd, n, i;
int ph, ps, np;
int nnote, nnote2, ns;
unsigned char *rpap;
char *p, *endp;

ai = 1;
if (ac >= ai + 2 && strcmp(av[ai], "-r") == 0) {
/* process -r realbase */
p = av[ai + 1];
descr[1] = strtol(p, &endp, 16);
if (endp == p || *endp != 0) {
fprintf(stderr, "Can't parse -r argument '%s' as hex\n",
p);
exit(1);
}
ai += 2;
}
if (ac != ai + 1 && ac != ai + 2) {
fprintf(stderr, "Usage: %s [-r realbase] elf-file [rpanote.elf]\n", av[0]);

if (ac != 2 && ac != 3) {
fprintf(stderr, "Usage: %s elf-file [rpanote.elf]\n", av[0]);
exit(1);
}
fd = open(av[ai], O_RDWR);
fd = open(av[1], O_RDWR);
if (fd < 0) {
perror(av[ai]);
perror(av[1]);
exit(1);
}

Expand All @@ -197,12 +184,12 @@ main(int ac, char **av)
if (buf[E_IDENT+EI_CLASS] != ELFCLASS32
|| buf[E_IDENT+EI_DATA] != ELFDATA2MSB) {
fprintf(stderr, "%s is not a big-endian 32-bit ELF image\n",
av[ai]);
av[1]);
exit(1);
}

if (ac == ai + 2)
rpap = read_rpanote(av[ai + 1], &nnote2);
if (ac == 3)
rpap = read_rpanote(av[2], &nnote2);

ph = GET_32BE(buf, E_PHOFF);
ps = GET_16BE(buf, E_PHENTSIZE);
Expand All @@ -215,7 +202,7 @@ main(int ac, char **av)
for (i = 0; i < np; ++i) {
if (GET_32BE(buf, ph + PH_TYPE) == PT_NOTE) {
fprintf(stderr, "%s already has a note entry\n",
av[ai]);
av[1]);
exit(0);
}
ph += ps;
Expand Down Expand Up @@ -273,18 +260,18 @@ main(int ac, char **av)
exit(1);
}
if (i < n) {
fprintf(stderr, "%s: write truncated\n", av[ai]);
fprintf(stderr, "%s: write truncated\n", av[1]);
exit(1);
}

exit(0);

notelf:
fprintf(stderr, "%s does not appear to be an ELF file\n", av[ai]);
fprintf(stderr, "%s does not appear to be an ELF file\n", av[1]);
exit(1);

nospace:
fprintf(stderr, "sorry, I can't find space in %s to put the note\n",
av[ai]);
av[1]);
exit(1);
}
4 changes: 0 additions & 4 deletions trunk/arch/powerpc/boot/cuboot-52xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ static void platform_fixups(void)
* this can do a simple path lookup.
*/
soc = find_node_by_devtype(NULL, "soc");
if (!soc)
soc = find_node_by_compatible(NULL, "fsl,mpc5200-immr");
if (!soc)
soc = find_node_by_compatible(NULL, "fsl,mpc5200b-immr");
if (soc) {
setprop(soc, "bus-frequency", &bd.bi_ipbfreq,
sizeof(bd.bi_ipbfreq));
Expand Down
174 changes: 0 additions & 174 deletions trunk/arch/powerpc/boot/cuboot-acadia.c

This file was deleted.

Loading

0 comments on commit 1cada31

Please sign in to comment.