Hello all,
We are using the p4080 sdk, version beta 2.01.
After install the sdk to /p4080, we ran the ./ltib command, after the build ran for half an hour, it exit with error.
===================================
Processing: u-boot-p4080
Error: /p4080sdk/ltib-e500mc-20091218//rpm/RPMS/ppc/u-boot-2009.06-14.ppc.rpm would clobber '/p4080sdk/ltib-e500mc-20091218/rootfs/boot'
traceback:
main::check_host_clobber:2671
main::build_rpm:906
main::f_buildrpms:980
main:560
===================================
Finally, we found the error reason as below:
In ltib, the below 3 lines is the error occured location.
[2671] if( $path !~ m,^(?:/opt|/tmp|/home|$cf->{rfsbase}), ) {
[2672] die("ERROR: $rpm\nwould clobber '$path'\n");
[2673] }
We modify the ltib script to print out the $cf->{rfsbase} and $path,
$cf->{rfsbase} /p4080sdk/ltib-e500mc-20091218//rootfs
$path /p4080sdk/ltib-e500mc-20091218/rootfs/boot
We found that the $cf->{rfsbase} has one more '/' in the output string.
This is the root cause which make the check_host_clobber exit with error.
The $cf->{rfsbase} is defined in line 508 of ltib script.
[508 ] $cf->{rpmroot} = $cf->{rfsbase} = "$cf->{bldbase}/rootfs";
After modify this statement to
[508' ] $cf->{rpmroot} = $cf->{rfsbase} = "$cf->{bldbase}" . "rootfs";
We get the correct $cf->{rfsbase} output as below
$cf->{rfsbase} /p4080sdk/ltib-e500mc-20091218/rootfs
After the ltib update, We re-ran the ./ltib script.
"Build Succeded"
Thanks for my colleague huaiguang for the perl support.
Hi,
I have the ltib from SDK_V1_20110429_ltib.iso which appears to be old while you are having
the p4080 sdk beta 2.01 at 2010-03-18 !
Anyway, my questions are:
1. Where can I get the later version of p4080 sdk ?
2. I could compile the u-boot from the sdk-v1_20110429-ltib.iso but it seems like pointing in various directions since
I could not even locate the powerpc/p4080 etc ...
Any help would be appriciated,
Best regards
/Neil
Thanks for your information,
when I building the sdk for P2020, same problem ocurr, you workaround does work!
hope freescale can fix this confusing problme soon.
also in line 2595 (in P2020 SDK ), when copying the linux kernel to /opt/freescale/pkgs , since the linux's kernel is uncompressed and it is a directory under ltib/pkgs , this line should change to cp -rf ... to let the ltib running successfully.
B.R
NIck Lee