Difference between revisions of "Package the Raspberry Pi kernel utility"

From CDOT Wiki
Jump to: navigation, search
(Kernel Utility Package Releases)
(Kernel Utility Package Releases)
Line 37: Line 37:
 
License:        GPLv2
 
License:        GPLv2
 
URL:            http://matrix.senecac.on.ca/~nhnguyen3/SBR600/source/
 
URL:            http://matrix.senecac.on.ca/~nhnguyen3/SBR600/source/
Source0:        http://matrix.senecac.on.ca/~nhnguyen3/SBR600/source/raspi-tools.tar.gz Patch0: raspi-tools-0.2.args.patch Patch1: raspi-tools-0.2.boot.patch Patch2:        raspi-tools-0.2.imagetool.patch  
+
Source0:        http://matrix.senecac.on.ca/~nhnguyen3/SBR600/source/raspi-tools.tar.gz
 +
Patch0:     raspi-tools-0.2.args.patch
 +
Patch1:       raspi-tools-0.2.boot.patch
 +
Patch2:        raspi-tools-0.2.imagetool.patch
  
 
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
BUildArch:      noarch
 
BUildArch:      noarch
BuildRequires:  python  
+
BuildRequires:  python
  
%description Raspberry Pi tool that creates a file called "first32k.bin" which is then merged with kernel file image to load to memory %prep %setup -n tools %patch0 -p1 %patch1 -p1 %patch2 -p1 %build %install rm -rf %{buildroot} mkdir -p -m 755 %{buildroot}%{_datadir}/imagetool mkdir -p -m 755 %{buildroot}%{_bindir}/ cp -p imagetool-uncompressed.py %{buildroot}%{_bindir}/ cp -p boot-uncompressed.txt %{buildroot}%{_datadir}/imagetool cp -p args-uncompressed.txt %{buildroot}%{_datadir}/imagetool %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root, -) %{_bindir}/imagetool-uncompressed.py %{_datadir}/imagetool %doc %changelog * Thu Apr 12 2012 Nam Nguyen <namhnguyen01@gmail.com> - 0.2-8 - modified default attribute directive to fix error with txt file * Wed Apr 11 2012 Nam Nguyen <namhnguyen01@gmail.com> - 0.2-7 - included patch files for individual source files * Tue Apr 10 2012 Nam Nguyen - 0.2-6 - modified so script installs in /usr/bin and text file in /usr/share/imagetool * Mon Apr 09 2012 Nam Nguyen - 0.2-5 - emailed Dominic Cobley to confirm license for python script to be used in package and made change to license as GPLv2 as request * Thu Mar 29 2012 Nam Nguyen - 0.2-4 - tested installing package and used rpmlint to check for errors * Thu Mar 29 2012 Nam Nguyen - 0.2-2 - editted spec file to have package install in /usr/bin rather then /usr/share * Thu Mar 08 2012 Nam Nguyen 0.1-1 - Successfuly packaged pythons script and file in Release 0.1
+
%description
 +
Raspberry Pi tool that creates a file called "first32k.bin"
 +
which is then merged with kernel file image to load to memory
 +
 
 +
%prep
 +
 
 +
%setup -n tools
 +
 
 +
%patch0 -p1
 +
%patch1 -p1
 +
%patch2 -p1
 +
 
 +
%build
 +
 
 +
%install
 +
rm -rf %{buildroot}
 +
mkdir -p -m 755 %{buildroot}%{_datadir}/imagetool
 +
mkdir -p -m 755 %{buildroot}%{_bindir}/
 +
cp -p imagetool-uncompressed.py %{buildroot}%{_bindir}/
 +
cp -p boot-uncompressed.txt %{buildroot}%{_datadir}/imagetool
 +
cp -p args-uncompressed.txt %{buildroot}%{_datadir}/imagetool
 +
 
 +
%clean
 +
rm -rf $RPM_BUILD_ROOT
 +
 
 +
%files
 +
%defattr(-, root, root, -)
 +
%{_bindir}/imagetool-uncompressed.py
 +
%{_datadir}/imagetool
 +
 
 +
%doc
 +
 
 +
%changelog
 +
* Thu Apr 12 2012 Nam Nguyen <namhnguyen01@gmail.com> - 0.2-8
 +
- modified default attribute directive to fix error with txt file
 +
 
 +
* Wed Apr 11 2012 Nam Nguyen <namhnguyen01@gmail.com> - 0.2-7
 +
- included patch files for individual source files
 +
 
 +
* Tue Apr 10 2012 Nam Nguyen - 0.2-6
 +
- modified so script installs in /usr/bin and text file in /usr/share/imagetool
 +
 
 +
* Mon Apr 09 2012 Nam Nguyen - 0.2-5
 +
- emailed Dominic Cobley to confirm license for python script to be used in package and made change to license as GPLv2 as request
 +
 
 +
* Thu Mar 29 2012 Nam Nguyen - 0.2-4
 +
- tested installing package and used rpmlint to check for errors
 +
 
 +
* Thu Mar 29 2012 Nam Nguyen - 0.2-2
 +
- editted spec file to have package install in /usr/bin rather then /usr/share
 +
 
 +
* Thu Mar 08 2012 Nam Nguyen 0.1-1
 +
- Successfuly packaged pythons script and file in Release 0.1
 
</pre>
 
</pre>
  

Revision as of 03:09, 14 April 2012

Package the Raspberry Pi Kernel Utility

Project Description

The Raspi bootloader requires a special header at the start of the kernel file in order to correctly load it into memory. The tool which creates this header needs to be packaged in Fedora.

Expected outcome: a Fedora package for the Raspberry Pi kernel utility.

Skills required: packaging

Project Leader(s)

Nam Nguyen

Project Contributor(s)

Kernel Utility Package Releases

Release 0.1

Release 0.2

Release 0.3

Name:           raspi-tools
Version:        0.3
Release:        8%{?dist}
Summary:        Raspberry Pi Kernel Utility
License:        GPLv2
URL:            http://matrix.senecac.on.ca/~nhnguyen3/SBR600/source/
Source0:        http://matrix.senecac.on.ca/~nhnguyen3/SBR600/source/raspi-tools.tar.gz
Patch0:     raspi-tools-0.2.args.patch
Patch1:        raspi-tools-0.2.boot.patch
Patch2:         raspi-tools-0.2.imagetool.patch

BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BUildArch:      noarch
BuildRequires:  python

%description
Raspberry Pi tool that creates a file called "first32k.bin"
which is then merged with kernel file image to load to memory

%prep

%setup -n tools

%patch0 -p1
%patch1 -p1
%patch2 -p1

%build

%install
rm -rf %{buildroot}
mkdir -p -m 755 %{buildroot}%{_datadir}/imagetool
mkdir -p -m 755 %{buildroot}%{_bindir}/
cp -p imagetool-uncompressed.py %{buildroot}%{_bindir}/
cp -p boot-uncompressed.txt %{buildroot}%{_datadir}/imagetool
cp -p args-uncompressed.txt %{buildroot}%{_datadir}/imagetool

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root, -)
%{_bindir}/imagetool-uncompressed.py
%{_datadir}/imagetool

%doc

%changelog
* Thu Apr 12 2012 Nam Nguyen <namhnguyen01@gmail.com> - 0.2-8
- modified default attribute directive to fix error with txt file

* Wed Apr 11 2012 Nam Nguyen <namhnguyen01@gmail.com> - 0.2-7
- included patch files for individual source files

* Tue Apr 10 2012 Nam Nguyen - 0.2-6
- modified so script installs in /usr/bin and text file in /usr/share/imagetool

* Mon Apr 09 2012 Nam Nguyen - 0.2-5
- emailed Dominic Cobley to confirm license for python script to be used in package and made change to license as GPLv2 as request

* Thu Mar 29 2012 Nam Nguyen - 0.2-4
- tested installing package and used rpmlint to check for errors

* Thu Mar 29 2012 Nam Nguyen - 0.2-2
- editted spec file to have package install in /usr/bin rather then /usr/share

* Thu Mar 08 2012 Nam Nguyen 0.1-1
- Successfuly packaged pythons script and file in Release 0.1


Project Plan

Tracking mechanism : github

Key contacts: ctyler

Goals for each release and plans for reaching those goals:

  • 0.1 Proof of concept - Research and obtain the file that is used as the Raspberry Pi Kernel utility. Successfully Package the file using rpmbuild into an SRPM & RPM
  • 0.2 Initial working state - Test the RPM for errors with rpmlint, mock, koji. Attempt to have errors resolved and then have package reviewed by the community
  • 0.3 Completed working state - Fix any remaining errors with package and complete Readme files and documentation. Have a finished and working kernel utility package.

Communication

Mailing Lists

Upsteam Wiki and Web

https://github.com/raspberrypi/tools/tree/master/mkimage

Links/Bugs/Tracking

Source Code Control

Blogs

Nam Nguyen's SBR600 Blog

Seneca Particpants

Nam Nguyen

Non-Seneca Participants

Planets

Planet CDOT

Project News