In biomedical all-optical pulse-echo ultrasound systems, ultrasound is generated with the photoacoustic effect by illuminating an optically absorbing structure with a temporally modulated light source. Nanosecond range laser pulses are typically used, which can yield bandwidths exceeding 100 MHz. However, acoustical attenuation within tissue or nonuniformities in the detector or source power spectra result in energy loss at the affected frequencies and in a reduced overall system efficiency. In this work, a laser diode is used to generate linear and nonlinear chirp optical modulations that are extended to microsecond time scales, with bandwidths constrained to the system sensitivity. Compared to those obtained using a 2-ns pulsed laser, pulse-echo images of a phantom obtained using linear chirp excitation exhibit similar axial resolution (99 versus 92 μm, respectively) and signal-to-noise ratios (SNRs) (10.3 versus 9.6 dB). In addition, the axial point spread function (PSF) exhibits lower sidelobe levels in the case of chirp modulation. Using nonlinear (time-stretched) chirp excitations, where the nonlinearity is computed from measurements of the spectral sensitivity of the system, the power spectrum of the imaging system was flattened and its bandwidth broadened. Consequently, the PSF has a narrower axial extent and still lower sidelobe levels. Pulse-echo images acquired with time-stretched chirps as optical modulation have higher axial resolution (64 μm) than those obtained with linear chirps, at the expense of a lower SNR (6.8 dB). Using a linear or time-stretched chirp, the conversion efficiency from optical power to acoustical pressure improved by a factor of 70 or 61, respectively, compared to that obtained with pulsed excitation.